Page 1 of 1

Problem with uploading files - Space in filename, unreliable upload

Posted: Fri Jul 01, 2016 6:41 am
by Clement Yew

Hi,

I've noticed the fileupload for jquery seems to have a number of quirks.
I'm developing an HTML5 app for desktop browsers.

When I try to upload files with spaces in the filename (E.g : sample file.mp3), the upload will fail. This is the error msg shown :
login.js:1196 Uncaught ReferenceError: value is not defined

Second problem is, when I try to upload a larger file (Maybe about 5-10mb), it will timeout and just fail to upload.
It will return success, but the file actually failed to upload. The response I get from console is "undefined".

This fileupload thingy seems to be quite unreliable and unpredictable. Perhaps you all can take a serious look at this? I am a subscriber of your plan, and my clients are complaining about this as well.


Problem with uploading files - Space in filename, unreliable upload

Posted: Fri Jul 01, 2016 6:36 pm
by Serhii Kulibaba

Hello,

By default, plug-in logic doesn’t changes the original file name. However, Appery.io Database has some restriction to file names. Valid file name should contain only a-zA-Z0-9%_.- characters, and file name length is limited to 218 characters. You can change the file name on-the-fly in uploadSelected function at line number 14. For example:

requestData.params.file_name = 'validFileName.png';

https://devcenter.appery.io/documenta...


Problem with uploading files - Space in filename, unreliable upload

Posted: Sat Jul 02, 2016 7:47 am
by Clement Yew

I'm using jquery to do it.
Could you share the uploadMultipleFilesHelper() function? I probably can change the filename from there. If it works, I can paste the solution here so that it might help others.

There' are other quirks as well... Sometimes, when I try to upload a larger file, say about 5-10mb, it will return an error after some time.


Problem with uploading files - Space in filename, unreliable upload

Posted: Mon Jul 04, 2016 9:36 am
by Serhii Kulibaba

uploadMultipleFilesHelper is deprecated function. Please add an upload plugin to your application (Create new-From plugin) to get a uploadBinaryHelper function