As promised, this is an early version of our file upload that I have released for public use.
The flash application takes 2 parameters.
uploadLocation : the location to send the files to, this is called for each file in turn. I suggest adding a PHP session id, or security cookie to this url if your protecting your upload system from the public, I have included a PHPSESSID in the example html for your reference. This url must be urlencoded.
This wont work when run locally via the html file, for flash security reasons.
Hope this helps, let me know if you have any issues.
I have only noticed this reply now, so I haven't tried it yet. I have been struggling with another Flash utility I downloaded called "in-a-flash Flash upload utility".
I managed to get it working okay, but I am having a problem with my variables, and I was wondering if your utility will present the same problem.
Just a quick overview of what I am trying to do: A user registers on the site (info is stored in Mysql database), then logs in. When they upload a file, it needs to go into a folder with their company name (a field that was originally entered in the registration form). I got this working by comparing the logged in user name from the cookie, and then comparing this with the database, and extracting the "company" info from that row in the database. By assigning a variable to this I am able to create a folder with the name of the logged in user's company.
When I use the above mentioned flash utility, however, I cannot (for some reason - unknown to me) extract the info from the database anymore. Perhaps there is something I don't know about using Flash and Mysql together that is causing the problem??
So, before I spend countless more hours fighting with another script, would you maybe be able to advise me if this problem will be the same with your script? Or if there is a good way of doing what I want to as described above?
This will be due to security, the flash application will not be able to send your current session/coookie with its upload request, thats why I included the PHPSESSID in my example. You will have to include some token to a session so the upload script is able to process your user as you expect.