View Full Version : FTP Account question???
xtimedt
01-10-2007, 08:45 AM
I have a client that needs to upload a file to me every week. Thy know nothing about FTP clients so I want them to upload via their browser. Then I want to be able to use an automated FTP download to get the file.
I created a new FTP Account on my server. But I can not log into it using either a browser or FTP Client. Anybody have a solution?
jbrowdy@oastl.com
01-10-2007, 10:08 AM
I am wondering the same.
xtimedt
01-10-2007, 10:21 AM
The instructions re confusing but here it is:
You actually get to the FTP Site by using the following structure:
ftp://ftp.mysite.com
Then you log in using the the username that was created:
Mine was: moralside@tunnellvision.net
Then the password you entered, then you gat access to the folder you created.
The instructions made it looklike the logo in URL would be:
ftp://moralside@tunnellvision.net but that is the username.
bobdog
01-10-2007, 11:53 AM
I have several clients that need to upload goodies for me. Also they have no knowledge of ftp.
I found a nice script for this. It is an upload form to your server, check it out:
http://codewalkers.com/seecode/192.html
The only thing you might want to do is check your php.ini file in the root and look around line 252 and set maximum uploads to a higher number:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
file_uploads = On ; Whether to allow HTTP file uploads
;upload_tmp_dir = ; temporary directory for HTTP uploaded files (will use system default if not specified)
upload_max_filesize = 30M ; Maximum allowed size for uploaded files
:cool:
xtimedt
01-10-2007, 11:56 AM
Big Dog,
Thanks man, that is quite helpful!
Dave
xtimedt
01-10-2007, 12:01 PM
How do you enact this script on your site?
bobdog
01-10-2007, 12:09 PM
Easy. Copy the code, paste it in a text editor such as notepad, give it a name with a .php extention, upload to server.
Be sure to set the path in the php:
$numoffile = 5;
// Fix path of your file to be uploaded, don't forget to CHMOD 777 to this folder
$file_dir = "/home/username/public_html/myfolder/";
make sure to go to control panel and set permissions to 777
Again, check the php.ini file in your root. Default max upload is 2 meg, if you want to be able to upload larger files, check line 252 and set the max upload.
xtimedt
01-10-2007, 01:02 PM
I know I probably seem dense here, but I am a lot of things, but not much of a php wiz. Once I have modified it and saved it to my server, how do I make it available so my client can access it?
Do I just link to that file? Do I embed it in a webpage? Can I pasword protect it? Is there a way to have it send me an email once a file has been uploaded?
Thanks for the help.
bobdog
01-10-2007, 05:02 PM
just make a link to that web page.
You could password protect it if you put it in a seperate directory. Use control panel and 'password protect directory'
This script does not send an email to notify you.
xtimedt
01-10-2007, 06:37 PM
Thanks for your help!
You can see it here: http://www.tunnellvision.net/UploadPage.shtml
user:test
password test
I will delete this user after 24 hours, but you will see what I managed with your help.
Dave
bobdog
01-10-2007, 07:18 PM
Cool Dude :p
xtimedt
01-11-2007, 07:50 AM
When I tested this, I tested it with a song that was only a couple of megs.
I changed the php.ine line 253 to 100M ...
When I tested it this morning with the actual file that is 29megs the upload appears to be going, but when it stops I do not get the "your files have uploaded successfully" message and the page simply re-sets and no file is uploaded.
Am I missing some other setting?
Thanks
Dave
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.