• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stupid FTP Grr

#14
[eluser]coolfactor[/eluser]
[quote author="nikolajcz" date="1186596677"]Hi, I've found this thread while looking for solution of the same problem.

Trying to upload file with simple code like this...
Code:
$this->ftp->upload('/1.mp3', '1.mp3');
keeps show me the same error message about wrong local source path recommending me to check it.
While 1.mp3 file is in my root folder (i'm working on mac os x).

i really don't understand, where could be the mistake.[/quote]

nikoljcz, the first parameter to the upload() function needs to be either:
- a relative path (not starting with a slash)
-or-
- a full, absolute path starting at the root of your disk drive

The path you're using ('/1.mp3') says to look for a file at the root of your disk drive called "1.mp3", but I doubt that is where you have it.


Messages In This Thread
Stupid FTP Grr - by El Forum - 07-31-2007, 05:49 PM
Stupid FTP Grr - by El Forum - 07-31-2007, 06:22 PM
Stupid FTP Grr - by El Forum - 07-31-2007, 06:26 PM
Stupid FTP Grr - by El Forum - 08-01-2007, 04:28 AM
Stupid FTP Grr - by El Forum - 08-01-2007, 07:59 AM
Stupid FTP Grr - by El Forum - 08-01-2007, 08:02 AM
Stupid FTP Grr - by El Forum - 08-01-2007, 08:03 AM
Stupid FTP Grr - by El Forum - 08-01-2007, 09:37 AM
Stupid FTP Grr - by El Forum - 08-01-2007, 09:47 AM
Stupid FTP Grr - by El Forum - 08-01-2007, 12:14 PM
Stupid FTP Grr - by El Forum - 08-01-2007, 12:20 PM
Stupid FTP Grr - by El Forum - 08-01-2007, 12:27 PM
Stupid FTP Grr - by El Forum - 08-08-2007, 07:11 AM
Stupid FTP Grr - by El Forum - 08-08-2007, 07:42 AM
Stupid FTP Grr - by El Forum - 08-08-2007, 07:57 AM
Stupid FTP Grr - by El Forum - 08-08-2007, 08:25 AM
Stupid FTP Grr - by El Forum - 08-08-2007, 08:30 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.