Found a bug! Cant retrieve the real File object

Hi,
I found a bug in wix code UploadButton. I cant get the real File object.

When I do $w(“#theuploadbutton”).value[0], I only get a object containing name and size. I need to have the real native File object from the browser in order to send in my fetch() method. I am coding my own custom upload.
A broader use case example would be
const file = $w(“#theuploadbutton”).value[0]
const fd = new FormData()
fd.append(“input”, file)
fetch(“someurl”, {body: fd})

I hope you can fix ASAP, or know how to retrieve File object
thanks!

This is not a bug. Wix does not host “real native Files”. Uploads of storage of documents and images are supported using the methods described in the Wix Code documentation.

I want to upload to my own host/storage thats why I need the real native Files from the inputfile-tag

@hanlinyap Wix does not support file hosting/storage.

@yisrael-wix I think you misunderstand me, I only need to have access to the JavaScript File Object from the html input-tag, then I can take care of the rest, you dont need to do any host/storage support.

@hanlinyap Files are specially handled by Wix, and Wix Code does not allow access to the native Javascript File Object. Only to the Wix Code File object and to the uploaded URL .

@yisrael-wix okey, are there any reason for not allowing? I would like to request to allow access to the native Javascript File Object

@hanlinyap There are various reasons: site security, protect against system abuse, system dependencies, etc.

Feel free to make a feature request .