1

I am interested in finding the most reliable method for uploading files in PHP. I need a progress bar with the upload.

I have tried SWFUpload but it randomly issues an I/O Error. Even if the same file is uploaded sometimes there is an error and sometimes there is not. I have configured all the necessary INI/Mysql/Apache directives to accept large file uploads.

So, I am looking for alternatives as a Flash based solution has not worked. Would Java be more reliable? I have also looked into PHP with APC.

I definitely cannot afford these random errors, so any help on reliable software / suggestions on how to minimize them would be appreciated.

Thank you.

3
  • What was your issue with APC? The APC callback has to be done via AJAX, as PHP will block the current page while the file is being uploaded. Commented May 27, 2010 at 20:30
  • What type of server are you running? If apache, do you have the option of installing mods? Commented May 27, 2010 at 20:39
  • I am running Apache, yes, and I have the option of installing mods. There was no issue with APC, but the updating was rather slow, might change the _freq ini setting and try it again. Commented May 27, 2010 at 21:59

3 Answers 3

2

There are other flash based solutions other than SWFupload. Have a look at uploadify.com

Sign up to request clarification or add additional context in comments.

1 Comment

I have found the ideal solution. Uploadify and if that doesn't work a normal upload form with APC. Thank you.
2

I haven't come around to try this myself yet but http://www.plupload.com/ might be what you're looking for on. But otherwise PHP + APC works good as well.

1 Comment

I just started using plupload on my projects. It is pretty awesome, and it will do file chunking (which will at least do 25% prog bars on uploads). It also supports Flash, HTML5, Silverlight, Gears, Browser Plus, and of course, falls back cleanly to HTML4 Forms (eww). All in all, it was a very easy to implement file upload mechanism.
-1

I am assuming 2 things here:

1) Some kind of client will be doing the file upload

2) You get some kind of say on what the client installs on their computer to help make this happen.

If this is the case, my first suggestion would be:

Give them FTP or SFTP client software to upload files. The php page you make can have a link to Filezilla, along with instructions on how to use it. ftp and sftp are THE protocols to use for transferring files. HTTP is just not designed(well) for it, nor are browsers.

4 Comments

He stated he needs to upload files in PHP (and reading the whole question, he means using PHP server-side, and a browser client-side.) Therefore, FTP or SFTP isn't an option.
A FTP solution would be reliable, but this is a web-based interface and I would really not like to burden users with FTP clients. It should be as simple as possible.
if you were telling me that you were writing a book about fixing cars, but you didn't want to burden the audience with buying real wrenches when they could just use a crescent wrench I think you'd look at it differently. Using the right tool for the right job makes everyone's lives better.
I dont want them buying wrenches. I want a system that fixes the car for them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.