I would like to be able to upload user files, send them to backend, change content if necessary.
I see Wix has Upload button control. As well I understand files may be uploaded to Wix server using "startUpload()" API (Wix's functionality I suppose).
I tried to get started with Wix's upload button by adding my code in uploadButton_onChange event callback. I understand that FileReader() API may be used to access files. However I saw that FileReader is not supported here.
As well I tried to make similar using HtmlComponent with 'input' element, also without success. Later I found the following note: "The HTML element and embed a site element in our Editor are iFrames. Therefore, the code or site you are embedding won’t be responsive, even if it is originally".
My questions are:
1. Is it possible to add some custom behaviour to Wix's Upload button as I tried and access user files programically
2. Is it possible to create uploader within HtmlComponent, or it will not be possible due to iFrame limitations
3. Is there any more elegant/correct way to add file upload?