Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

fileUpload plugin doesn't work on mobile for files over 2mb

Vanilla: 2.1.11
FileUpload: 1.8.4

Upload of same file(>2mb) works from laptop, but not on mobile. Is there any specific filesize limit setting for mobile? Files under 2mb uploads ok from mobile too. (Tried on both iPhone and Android using chrome)

  • Have mobile friendly set to true
  • filesize limit set to 10M
  • Tried ImageUpload and faced the same exact issue
Tagged:

Comments

  • peregrineperegrine MVP
    edited October 2015

    jpg, jpeg, or png file? shouldn't matter. but which did you try.

    did you try EXACTLY the same file to upload or a similar one?

    people have been jumping to the wrong conclusions frequently on this question.

    exactly what size file works on laptop and doesn't on mobile. since you are talking about the same file and extension, you should be able to specify the size you are trying.

    http://vanillaforums.org/discussion/comment/220596/#Comment_220596

    with image upload there was a problem where people needed to add jpeg to the uploadimage file for compatibility.

    http://vanillaforums.org/discussion/30911/imageupload-doesnt-work-on-iphone-unless-its-a-png

    http://vanillaforums.org/discussion/comment/234350/#Comment_234350

    http://vanillaforums.org/discussion/30867/some-users-sometimes-not-able-to-upload-images-really-solved-this-time

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Its jpg file, Same exact file. Size 5.4MB

    Works on laptop and not on mobile, If i crop the same file on mobile to bring the size down to 1.6 mb, it works fine. So does seem to some setting specific to mobile.

  • peregrineperegrine MVP
    edited October 2015

    @Visu said:
    Works on laptop and not on mobile, If i crop the same file on mobile to bring >the size down to 1.6 mb, it works fine. So does seem to some setting specific to >mobile.

    don't know of any php file size setting that would cause the problem just on mobile and not on desktop. and I don't know of anything in vanilla itself that would cause that. Since you can upload the same exact large file from a desktop.

    hmm. that's a tricky one.

    the only thing I can think of is some type of memory limitation on the mobile device or mobile network provider limitation itself or a timing issue. Can you upload that same jpg to another forum or site from both your desktop or mobile device. if you can't that could possibly give you some insights.

    • Do you see anything in your error logs on server?

    it will be interesting to see what is causing the issue.

    never saw the issue you are reporting. maybe some one else has some ideas or experience the same problem on their forum.

    another thing to try just for grins.

    • try a large png file or some other format and perhaps a 2.0mb zip file and try to upload to your forum from android and see if it is still a 1.6mb limitation.

    you could download the vanilla core zip or someo other large to iphone and try to upload from iphone to your forum as a test as well to see if it specifically a size issue on mobile.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • ok, this super weird.

    I tried uploading the 5.4MB file here and it worked on both mobile and laptop. Then i head over to my forum having the error log tailed and the upload worked this time on both mobile and laptop.

    Nothing has been changed.

    Thanks for your help. Will keep this thread updated if i find anything

Sign In or Register to comment.