Have a suggestion?

Click here to suggest a blog item.

Newsletters Archive

Catch up with DonationCoder by browsing our past newsletters, which collect the most interesting discussions on our site: here.

Editorial Integrity

DonationCoder does not accept paid promotions. We have a strict policy of not accepting gifts of any kind in exchange for placing content in our blogs or newsletters, or on our forum. The content and recommendations you see on our site reflect our genuine personal interests and nothing more.


Latest News

July 2, 2024
Server Migrations Coming

  • Donationcoder server migration is slowly proceeding, expect some hiccups as we get all our ducks in a row..

July 19, 2022
Software Update

Jan 3, 2022
Event Results

May 13, 2020
Software Updates

Mar 24, 2020
Mini Newsletter

Dec 30, 2019
Software Updates

Jan 22, 2020
Software Updates

Jan 12, 2020
Newsletter

Jan 3, 2020
Event Results

Jan 2, 2020
Software Updates

Dec 30, 2019
Software Updates

April 27, 2019
Software Updates

Feb 26, 2019
Software Updates

Feb 23, 2019
Software Updates

Feb 14, 2019
Software Updates

Jan 6, 2019
Event Results

Dec 2, 2018
Software Updates

Nov 13, 2018
Software Releases

July 30, 2018
Software Updates

June 24, 2018
Software Updates

June 6, 2018
Software Updates

Apr 2, 2018
Fundraiser Celebration

Apr 2, 2018
Software Updates

Feb 24, 2018
Software Updates

Jan 14, 2018
Major Site News

Jan 10, 2018
Event Results

Latest Forum Posts

Our daily Blog

This page spotlights the most interesting posts collected from our forum every day.

You are viewing a specific blog item. Click here to return to the main blog page.

XUpload: Fileupload with Browser and Progressbar

xupload_status.png
A few days ago i was in need to implement a file upload capability in one of my web applications. It should work on clientside without any special programs like a FTPClient or sth. like that. Only with the pure, available on every PC, webbrowser.

The ugly side of the story was, that uploads with browsers sucks. You have no real progress tracking. But i like to have this feature. So i researched a bit and learned that is isn't possible with only PHP right out of the box, if you haven't installed PHP V 5.2 or higher on your server or use some patched unofficial PHP corefiles. In the 5.2+ versions of PHP there are hook functions built in to monitor http uploads. But i was stuck with PHP 5.1.2, so no hooks for poor JoTo and i reject to use unofficial hacked core files.

So i accepted to have a hybrid solution with a combination of PHP and Perl/CGI that can do the trick. I searched a bit further and found a wonderful component named XUpload from Sibsoft. I downloaded the thingy and it worked for me, right out of the box, after a short and easy install. So i decided to share this information with you all, in the case someone is in need also in the future.

Features i liked:
<ul>
<li>A continuous realtime progress bar and information about uploaded amount in percent and KB, upload speed, used as well as remaining time</li>
<li>Handles big files also (i tested it up to 600MB yet)</li>
<li>The upload page and the embedded form, as well as the upload status window, are very customizable using a template system and CSS</li>
<li>The upload form is extensible with as many user defined fields as you wish</li>
<li>The upload CGI is fully transparent and you can redirect all form data, after the upload finishes, to any URI you want (to process the uploaddata yourself - e.g. like me to my PHP script again to send a notify email about the upload</li>
</ul>

The older version 2.6 of XUpload is free. There is also a PRO Version 3.0 of XUpload with many more features (, page inline progressbar, ...) for purchase at $37 per domain. But even the free version is very usable for most cases and can be used for as many domains as you wish.

http://www.sibsoft.net/xupload.html



Share on Facebook