I'm having a nightmare with uploading files and was wondering if anyone could quickly whip up a little script for me, I just need to upload two files, I need to assign a name like jfmsdi234hsdsfsdf for each of them, e.g. longname.gif and longname.swf so they're the same, upload one file to /files/thumbnails and the swf file to /files/swf I need to keep the path of the file e.g. files/swf/longname.gif as well to insert into my database. If anyone could complete something like that I should be able to edit it to anything else I may need, thanks!
Because I'm trying to build a user-friendly system that's almost 100% automated. (Oh, and this process will be repeated lots of times)
yup, agree with smatts9 unless you are thinking of making an automation, you should keep it simple and use ftp instead.
Do you mean that you want your webpage to allow a user to upload two files, one of them being an image and to insert the image into the database?
I want to be able to upload an image and swf file via my webpage and then insert the file paths into the database. FTP is not an option.