Due to the great interest in my little php-upload-with-progress-bar script I have now created a sourceforge project for it and released a new version of the code, based on all the great feedback in the original blog post. The new version can be downloaded here. The changes are mostly to make it easier to get started with the script. If you’ve already got it working, don’t bother downloading this one.
If you’ve got ideas for the next version, please leave a message in the comments or on the Sourceforge project page. Already planned features for next version are ability to print progress (in percentages), as suggested by Travis, and download speed.
The script has also been given a name, tesUpload, and a permanent home.

hey man…
i’d really love to use your ajax uploader… but i can’t seem to get it to work. there are no error messages. entering the title and body works fine, but when i choose a file to upload, it does nothing. the progress bar never changes at all. the browser just acts like it’s busy for a minute, and then… nothing! and after that happens i just get the js popup error message if i click submit.
have you ever seen this? any thoughts or ideas i might be able to use?
zack
hi tomas…
i need to hire someone to write (or to help me write) a custom web app based around your ajax uploader. would you be interested?
thanks…
zack
Just wanted to let you know I installed it, doesn’t work. No errors, so I’m assuming there’s some foggy water between the perl and php script. Would love to get this to work.. must keep searching.
Hi:) I really don’t want to be a bother, but I am also experiencing issues that I have been unable to resolve. After searching through all comments and sifting through supposed solutions found here and on sourceforge, I am stuck - unable to troubleshoot why ‘PHP can’t write to temp dir () or the upload dir ().’
I have uploaded html contents to ‘domain.tld/upload’, and cgi to my cgi bin (perl works perfectly). My temp and upload directories are ‘domain.tld/tmp’ and ‘domain.tld/tmp/uploads’ respectively. Both folders have permissions set to 777. I have also tried 755.
My settings in upload_settings.inc and upload.cgi look like: ‘$tmp_dir=”/tmp”;’
Any thoughts? Looking forward to your reply.
Thanks in advance for an excellent piece of software:) Irfaan.
Hi… got it installed and tracked some error messages to my misconfiguation of the settings. The file upload worked fine and the progress bar moved (yay!!!). Once it was done, I clicked submit and got a number of error messages on the next page:
Warning: unlink(/tmp/68bcdb2cbaacbabe6edb68779cb2f1b2_qstring): Operation not permitted in…
Warning: unlink(/tmp/68bcdb2cbaacbabe6edb68779cb2f1b2_flength): Operation not permitted in…
Warning: unlink(/tmp/68bcdb2cbaacbabe6edb68779cb2f1b2_postdata): Operation not permitted in…
Warning: unlink(/tmp/68bcdb2cbaacbabe6edb68779cb2f1b2_signal): Operation not permitted in…
Looking into the code, why is the script appending the file with “_qstring”, “_flength”, “_postdata”, “_signal”, etc.? Are these scratch files used to calculate and process the incoming file?
I know I’ve been able to write to the /tmp directory, move files and delete files from there. However, the PHP script doesn’t seem to be able to do so.
Also, can the script be tailored to upload when the user clicks “Submit” instead of before? And once the file is uploaded and the progress bar reaches 100%, it can be redirected to a “thank you” page?
Thanks in advance.
Cent
Hi Good day my name is Marcio lives in Brazil and is Programmer using the Coldfusion language.
he is possivel to make upload in ajax using the Coldfusion language?
I did not find no example in the Net that exemplifique as to make this procedure.
You could help me?
Atenciosamente
Marcio dos Santos Amorim
CEREBRUM - Websites e Softwares para Internet
http://www.cerebrum.com.br/
telefax: 55 (11) 6205.3350 - celular: 55 (11) 9603.3874
msn: atendimento@cerebrum.com.br - skype: atendimento_cerebrum
Is there a place where I can see a demo?
Hi,
i am using your upload script it works fine but when i am trying to upload large files ( about 45MB) it stops.. how can i avoid this problem ?
Also i tired to change the upload.cgi to nph-upload.cgi (non parsed header) but it still cant upload large files… its always timeout by browser…
Could you help ?
Regards,
OK After struggeling for a while( 2 days) on windows system I got it to work. Opening binary files in windows need special treatment as they are written differently so they must be opened in binary mode to do this in perl after some digging on the internet I found it. You must use binmode
search for the following in upload.cgi
open(TMP,”>”,”$post_data_file”) or &bye_bye (”Can’t open temp file”);
after that add
binmode TMP;
so it will look like
open(TMP,”>”,”$post_data_file”) or &bye_bye (”Can’t open temp file”);
binmode TMP;
do the same for the following line
open(STDIN,”$post_data_file”) or &bye_bye(”Can’t open temp file”);
so it will look like
open(STDIN,”$post_data_file”) or &bye_bye(”Can’t open temp file”);
binmode STDIN;
Hope this will help windows users out there I lost all my hair because of this (Just kidding I am bold anyways)
free online credit report with no charges at all…
counselor scythe!newsmen shielding occlude …
united of omaha life insurance…
cruising coiling withers….
Great site. Keep doing., http://en.gravatar.com/kimkardashiansextapes kim kardashian sex tape, 009840,