简体   繁体   中英

Uploading large files (greater than 10MB) from Android to PHP server

First of all sorry if this was already asked and sorted out. I really did a hard search and cant able to find a better solution.

Requirement: We are developing an Android application where we need to upload the video files to a folder in the web server. The web server is running in PHP. The video files are very huge in size (more than 10 MB). And the web server is hosted on a shared hosting server where they have PHP upload limit as 2MB.

I hope my requirement is very clear to understand.

We struggled for several days and found apache FTP could solve our problem. After having few sleep less nights, we able to done the upload via FTP. The problem in FTP is if the data (Internet / 3G) goes down then the FTP is stopped and it is not resuming after the data (Internet / 3G) is available.

Now we are back to square 1. Searching again how to upload large files from android device to PHP server.

I need your advice on this. Kindly help.

Thanks & Regards Malai

It sounds like you will need to restrict your uploads to only ocurr while the user is on WiFi. You will want to do this anyway since most carriers are now on metered data plans; if the data connection is lost as in your scenario, then the user will be transmitting way more than just 10MB per upload, as each attempt is transmitting something.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM