Image upload via retool and get url

I have a retool form where people upload their documents.
fileInput1.value[0] take 'jpg', 'png' or 'pdf'
I want the link of the picture to be appended in a google sheet for storage.
I have tried to access the lmage or pdf link with fileInput1.value[0] but it returns

"Your input contains more than the maximum of 50000 characters in a single cell."