.:: Building Upload Script With Progress Bar ::.

Go down

.:: Building Upload Script With Progress Bar ::.

Post  waleedbarakat on Thu Aug 14, 2008 3:17 pm

Hello everyone...

In this tutorial we will learn how to build an advanced, powerful and easy File manipulation script, this File manipulation script allow your site visitors to upload, download files, and share this files with their friend(s).

File manipulation is used on the web to allow site visitors to download an offline version of the information presented, for effective document management or just to offer some files to others. Dynamic sites cover file manipulation quite nicely, allowing file uploading and changing on the fly, as well as a better control over downloaded / uploaded files.

Downloading files is the easy part, you just need to add a link to your page pointing to the file's location on the server, and when any visitor clicks that link, he can download the file.

The page to which the form submits will initialize some variables containing the file name, size and the remote upload folder. These variables have different names, depending on the web server you use, but their function is similar. To find what the specific names for this variables are for your particular configuration, consult the manual of the server, the file manipulation section.

When you work with files, you should take into account the following issues:

Maximum file size. This determines how large uploaded files can be. This option depends on each server's configuration and if exceeded, the file will automatically be discarded.
File access rights. To be able to upload files to a server directly from your web application, you must set the right to save files to the specified folder, otherwise an error occurs.
Proxy and cache settings. Certain proxy and cache configurations can limit the maximum allowed file size. Therefore, when you attempt to upload a large file, you might get an error, even if your web server is configured to accept the file. These settings can be changed in the proxy/cache configuration files.
The advanced options:
- Attaching progress bar indicator while the file is uploaded.
- Show the download and delete links to visitor.
- Adding splash screen with waiting countdown timer.
- Counting how many times the file downloaded by visitors.
- show/hide page elements to protect it from being hacked.
- send download link to others using Send Email and Custom forms.
- and much more...

Go to tutorials


Posts : 29
Join date : 2008-06-25

View user profile

Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum