Upload Files Like Gmail

November 1st, 2007 by Sajith M.R
This entry is part 2 of 3 in the series Gmail Architecture

Now we can see ajax everywhere. Most of the famous websites are now enabled ajax for providing faster navigation and browsing speed.

If you are a gmail user, the thing you noticed very attractively should be the file attaching part of the email composing window.

If you wait for sometime you can see, your file gets automatically uploaded without submitting the whole form. This is not Ajax. Because XMLHttpRequest (XHR) is not supporting multipart/form-data.

You can use iframe for this purpose by pointing the target of form submission towards the iframe (you can place it as hidden style=”display:none”)

<form target=”iframename” action=”upload.php”>

You can write javascript at the upload.php end, you can change the file uploaded updations just like ajax

Sample code for this “Ajax File Upload” or Gmail-Like File Upload is here :
File-Upload-Like-Gmail.rar

Winrar logo

Thanks and Regards

Sajith.M.R

Gmail Drive

November 1st, 2007 by Sajith M.R

How come i  didnt  noticed this before ??  If you have a gmail id , you can use it as a space for data storage.
Yes it is absolutely online data storage for personal purpose. You can access this data from anywhere via internet !!!

It looks exactly like our normal drive. Open , create folder, copy, paste , cut , drag drop etc etc are still there.
If you have better bandwidth internet connection, all ok.

Download the executables from http://www.viksoe.dk/code/gmail.htm

After installation, just look at your my computer , you can see a new drive there..That is gmail drive.
Click on that and enter your gmail id and password. You can see a blank page . Here you can create folder and paste your files. Coool na :)

Special thanks to http://www.engadget.com