rline101 Posted February 21, 2007 Share Posted February 21, 2007 Hello, I'm trying to automate uploading 80-90 files at a time (and I have to do this regularly), and the filenames are always the same each time (eg. it's always file1.php, file2.php, etc). I need to do this without using the standard browse input type=file button for each file. On one hand I was told that I could (a) put the upload code in a function, (b) store the file names in an array, © loop through that array and call the upload function at each cyle I was told by someone else that it's impossible to do this due to a security measure in php, and that file upload can't happen without selecting a file through the browse box. Both opinions are from people who generally know what they're on about. Could someone please clear this up for me? Can I do what I want? Or am I stuck doing it manually and having to hit the Browse button 80 times. I'd really really appreciate some guidance here... Thanks Link to comment https://forums.phpfreaks.com/topic/39438-solved-need-the-truth-about-multiple-uploads-without-browsing/ Share on other sites More sharing options...
camdagr81 Posted February 21, 2007 Share Posted February 21, 2007 I was told by someone else that it's impossible to do this due to a security measure in php, and that file upload can't happen without selecting a file through the browse box. This is correct. The only way to automate file uploads is to set up an ftp server on your webserver and either run a batch file that will automate the process, find an ftp client that will allow you to schedule uploads, or write a php script using the ftp commands. Link to comment https://forums.phpfreaks.com/topic/39438-solved-need-the-truth-about-multiple-uploads-without-browsing/#findComment-190451 Share on other sites More sharing options...
rline101 Posted February 21, 2007 Author Share Posted February 21, 2007 OK. Thankyou very much for giving me some closure on this issue! And thaks for your speedy response... Regards. Link to comment https://forums.phpfreaks.com/topic/39438-solved-need-the-truth-about-multiple-uploads-without-browsing/#findComment-190770 Share on other sites More sharing options...
TRI0N Posted February 21, 2007 Share Posted February 21, 2007 Depending on the server and if linux your better off with WinSCP (its free) where you can issue yourself a signature security file so that only you have it and only you can login. FTP isn't the most secure protocal but WinSCP does give you more peice of mind. If your a win server then FTP may be the best way to go for the less expensive thought in mind. Link to comment https://forums.phpfreaks.com/topic/39438-solved-need-the-truth-about-multiple-uploads-without-browsing/#findComment-190772 Share on other sites More sharing options...
rline101 Posted February 21, 2007 Author Share Posted February 21, 2007 Ah. Well the situation is that this is a site at my workplace where there is no ftp. The way I have been transferring files is by copying them from my local folder to the folder which houses the website files. Drag and drop. As soon as I copy them the site is updated. Which is great if I'm at work! But if not, then I need to upload without using ftp. Which is where my interest in extending the file upload came from. I'm not sure whether the server is linux or win, but I think it's linux. How do I tell? Link to comment https://forums.phpfreaks.com/topic/39438-solved-need-the-truth-about-multiple-uploads-without-browsing/#findComment-190779 Share on other sites More sharing options...
camdagr81 Posted March 5, 2007 Share Posted March 5, 2007 Well if you're folders are on a network and your webserver has access to those folders, you can write a page using the copy() function then you can run the page from where ever you are (provided you have an internet connection) and update the files remotely. Link to comment https://forums.phpfreaks.com/topic/39438-solved-need-the-truth-about-multiple-uploads-without-browsing/#findComment-200076 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.