AJAX Server to Server direct file transfer

Posted by guru in September 26th, 2007
Published in HTML, Javascript, PHP, Uncategorized

[An updated version of this code is now available!]

I had always been missing a system like this in Wordpress and Joomla (to install plug ins). This codes snippet lets to transfer files directly from one server to another without having to do a pesky job of downloading them to your computer first and uploading it afterwards.

Here is the code for the PHP part:
Please scroll down for the AJAX implementation of this code snippet.

The above code works fine except when the files are too large. If it takes too much time for PHP to copy the file, it simply halts transferring file due to browser’s connection timeout.

To tackle this problem I’ve created a full AJAX implemented version of this code, based on the ‘PHP file manager (AJAX demo)’ I posted earlier.

AJAX implementation:
The above code is just for concept, its better to get the AJAX version of this code snippet.

Server2Server demo screen shot

Download Source:

UPDATED v1.1: AJAX Server to Server direct file transfer v1.1 Source

OLD v1.0: Server to Server AJAX implementation FULL source code

Furture Plans:

  1. Add a progress bar to indicate file transferring progress.
  2. To fix all bugs :D

If you find any bug (and you might find some cause the coding was done in couple of hours) or problems please let me know. Comment below for anything!

4 comments so far.

Follow-up this post comment rss or leave a trackback
mygif
uttam wrote,

Sir Ji, Can you plz do it fast I am waiting >-(

mygif
Somebody wrote,

I like that future plan :-) mainly that bug one.

Hope it is not full of bug now :-) I am planning to use it now.

mygif
CodeLab wrote,

Nice Script. Thanks
But One Problem
The Files That Are Transferred Using This Script Are Owned By httpd User

I Tested On My Two Servers.
One One Server File Ownership Was Ok,
But On Other One Files Were Owned By httpd:httpd

Could You Please Throw Some Light On It
Thanks

Pingback And Trackback

pingback and trackback from various blogs
mygif

[…] [See original post with old version of this code] […]

Leave A Reply Below

for "AJAX Server to Server direct file transfer"

 Username (*required)

 Email Address (*hidden)

 Website (*optional)

 Website (*optional)

Social Feeds

Topics Search

Main Translator

French

German version

Spanish version

Italian version

Categories

Recent Articles

Recent Posts

Recent Commentes

August 2008
M T W T F S S
« Oct    
 123
45678910
11121314151617
18192021222324
25262728293031

Blogroll

Navigation

Share!

Add to Technorati Favorites
Add to Google Add to Windows Live