Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Copying a file from webpage to server

Copying a file from webpage to server
Thread Tools
apostacy
Junior Member
Join Date: Dec 2003
Location: New Jersey
Status: Offline
Reply With Quote
Mar 2, 2007, 06:19 PM
 
In GMail, when you attach a file to an email, you select it from a local folder and then it eventually gets copied to their servers--even before you send the email. Does anyone know how this is done? I wanted to create a webpage on my iMac at home (it's running apache) that did this so I could move files back and forth without having to use ftp.
MacBook 2.4 GHz
Mac OS X 10.5.8
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Mar 2, 2007, 06:39 PM
 
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Mar 2, 2007, 07:13 PM
 
Originally Posted by apostacy View Post
In GMail, when you attach a file to an email, you select it from a local folder and then it eventually gets copied to their servers--even before you send the email. Does anyone know how this is done? I wanted to create a webpage on my iMac at home (it's running apache) that did this so I could move files back and forth without having to use ftp.
I wouldn't recommend doing that, unless you were content to tweak Apache's timeout values. You'll have a hard time uploading large files. Also, unless you want to get into installing an SSL cert, you'll have no real security doing this.

I'd suggest looking into either ssh/scp/rsync, sshfs, or afpd (the default connection method using Connect to Server in the Finder). You can configure your router to forward incoming connections to any PC on your network.
     
registered_user
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status: Offline
Reply With Quote
Mar 2, 2007, 07:56 PM
 
     
SirCastor
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status: Offline
Reply With Quote
Mar 3, 2007, 07:39 PM
 
I picked it up here:

PHP Tutorial - File Upload

Good tutorials

BTW, I agree with Besson. having a Web-Based form upload is a poor substitute for FTP.
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
     
apostacy  (op)
Junior Member
Join Date: Dec 2003
Location: New Jersey
Status: Offline
Reply With Quote
Mar 5, 2007, 10:03 AM
 
Hmm... ok, thanks everyone. Interesting stuff. I'll look into those tutorials.
MacBook 2.4 GHz
Mac OS X 10.5.8
     
zro
Mac Elite
Join Date: Nov 2003
Location: The back of the room
Status: Offline
Reply With Quote
Mar 8, 2007, 11:24 PM
 
Fyi, Ssh = Sftp.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:16 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,