Welcome to WebmasterWorld Guest from 54.147.10.72

Forum Moderators: phranque

Message Too Old, No Replies

Need A File Upload Script Recommendation

     

jlr1001

12:40 pm on Apr 4, 2007 (gmt 0)

10+ Year Member



I need to source a file upload script that can connect to a third-party ftp server. I've been looking at php-based apps, but all of them are designed to upload the file to a directory on the same server where the script is hosted.

Also, I'm looking for a simple file upload interface not a full, php ftp client. Basically I only want site visitors to upload files, not be able to browse a directory structure or see any other files that have been uploaded.

Does any script readily come to mind?

Thanks for any suggestions.

-jlr1001

bill

1:45 pm on Apr 5, 2007 (gmt 0)

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Why not run the script as intended and then run a cron job to FTP or rsync the files to the other server?

jatar_k

1:48 pm on Apr 5, 2007 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



bill's thought is probably best

if you are using one server to upload to another then you are going to have to upload to the first server and then push it to the other server. If you don't fully control the other server then you are looking at ftp functions which means you probably will have close to a full blown ftp client.

The logic of what you are trying to do makes standard upload scripts useless and full ftp clients overkill. You should probably rethink your logic a bit, you will probably need to adjust what you are trying to do or at least step it out to do it differently.

jlr1001

6:42 pm on Apr 5, 2007 (gmt 0)

10+ Year Member



The site in question is currently on a shared server which restricts how large an uploaded file can be. (I've tried adjusting this with custom php.ini files but the restriction seems to hold).

The files in question could be fairly large, so I thought of using a third-party file host. I can use a web-based php app, but as you mentioned that would be overkill...

I actually found something that works but it's a java application and I'm not 100% happy with forcing some users to install the JRE.

Any other thoughts?

Thanks,

-jlr1001

 

Featured Threads

Hot Threads This Week

Hot Threads This Month