/    Sign up×
Community /Pin to ProfileBookmark

Best solution for Large(500mb>) files uploads from website

Hi
Im working on a new site and need a upload form similar to [url]www.landr.com[/url]

Clients have to be able to upload large files to my server, 1GB would be enough.
If its easier to upload to dropbox or google drive thats ok.
But it has to be easy because otherwise no one will use the service.

I have done a lot of research but cant find a good solution.
My web hotel has a upload_max_filesize of 96M.

The process is:
Client fill in a contact form, make a payment, and then will be redirected to an upload page.
I want to set the filename myself otherwise its going to be a mess to find the file/client.

If it wasn’t for the file upload limit it would be easy, i have no problem figuring out the mysql/php part.

Hoping for someone that can give me advice on how to upload large files.

Directly to my web server or drop box / google / similar doesn’t matter.

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@NogDogFeb 05.2016 — To upload directly via a form to a PHP script, see http://php.net/manual/en/features.file-upload.post-method.php . Near the top there is a paragraph pointing to a number of PHP configuration settings you may need to tweak in order to upload large files. Depending on your server config, you may be able to override the current settings in a .htaccess file, otherwise you'll need direct access to the php.ini file.
Copy linkTweet thisAlerts:
@silversthlmauthorFeb 05.2016 — Chatted with my web host and they say that upload_max_filesize is 96M and i checked it, phpinfo()

After some research i think it seems like one way is to upload large files in chunks and then "glue" them.

Another solution is to use google drive api but i just don't understand the documentation.

Im desperate to find a solution for this, its the last puzzle piece for me.

Have to launch this site.
Copy linkTweet thisAlerts:
@NogDogFeb 05.2016 — There may be some Flash or Java (not JavaScript) applets you could use, but I don't have any personal experience with any of them. (And either would require that the user's browser support/allow them.)
Copy linkTweet thisAlerts:
@silversthlmauthorFeb 05.2016 — I also read that but i cant find a ready made solution for it and I'm not a java developer.

This site depends on the file upload and a lot of uploads will be around 500mb.

Im sure it could be done just don't know how.
Copy linkTweet thisAlerts:
@NogDogFeb 05.2016 — Does your web host allow you to override PHP config settings via .htaccess or access to your own php.ini? If so, you should be able to do it using the built-in PHP functions discussed in the link I posted in my first reply. If not, is this important enough that you'd consider switching to a different hosting plan or provider?

Otherwise, you might be able to leverage Google's API in some way to work with Google Docs, but I have no experience with that, and that would presumably mean the (large) file gets loaded there first, then you'd pull it down to your web server via the API, meaning twice the internet lag time.
Copy linkTweet thisAlerts:
@SelfCoderFeb 08.2016 — An other example: Split the file over automatic "zip" (or other) compression to (x * 96M? and after join the files.
×

Success!

Help @silversthlm spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...