Jump to content
  • Advertisement
Sign in to follow this  
kileran

[web] php upload, without file size limitations

This topic is 4169 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

First, I'm on shared hosting from 1and1, so any responses that involve changing my server's settings arn't going to help me That asside, here's what i'm trying to do. I need a way for one of my developers to be able to upload files to our webserver, wether i'm around or not. I only have 1 FTP account with 1and1, and i'm not gonna give that to him. I've downloaded a couple of php upload scripts from hotscripts, and they all work fine, up to about 8 or 10 megs (i havn't fully tested what size breaks it yet) Beyond that size, the script just ends without any output message. i'm not sure if this is a filesize limitation, or if the script is timing out. Is there a better or different way to facilitate uploading files? how does youtube do it? that's an applet of some kind, right?

Share this post


Link to post
Share on other sites
Advertisement
The HTTP POST size limit is a server setting. And if you are already on cheap hosting, you aren't going to be running any applets, as that would require a custom program running on the server that isn't yours (opening up ports that are not yours).

Share this post


Link to post
Share on other sites
Not the ideal solution, but you could compress and split your files in to several parts using something like Winrar and upload the seperate parts.

HTH,
Cambo_frog

Share this post


Link to post
Share on other sites
I know you can once the file is on the filesystem but I don't know if it's possible during an upload...

There is a way to "grab" a file and start at a certin byte and end at a certain byte. I'm wondering if you could do the same for these large files - but I don't know how you'd work that into the upload script.

You'd have to grab the first so many bytes, and continue until there is no more to grab. Keep appending the file with the data instead of writing.

Like I said I don't know if this possible on an upload script. I'm sure there are methods of doing this if you build an applet.

Share this post


Link to post
Share on other sites
I'm knee-deep in a project today but you could take a look at


http://www.raditha.com/megaupload/upload.php


(I've pointed you to the FAQ page, which I was reading up on the required changes to make to his script to bypass php limits without editing php.ini....)

Good luck.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!