kdawg
07-06-2007, 09:20 PM
Here is the scenario. I have a SWF that lets users upload photos via the FileReference class. The problems. I need to be able to replace or append a unique variable to the file name so one–I can track the image and two–if someone uploads a file with the same name it doesn't overwrite an existing file with the same name.
I'm and AS guy so server side scripting isn't my cup of tea but I'm game. So if anyone could help me out and talk REALLY slowly I'd be much obliged. This seems like a very typical scenario but I don't know where to begin. Perhaps I could append the variable at the end of the URL, using a cookie, then pass it into Flash? Although I haven't the faintest clue how to use a cookie.
The server is equipped with the typical PHP/CGI/mySQL. I'm using Flash 8.
I'm and AS guy so server side scripting isn't my cup of tea but I'm game. So if anyone could help me out and talk REALLY slowly I'd be much obliged. This seems like a very typical scenario but I don't know where to begin. Perhaps I could append the variable at the end of the URL, using a cookie, then pass it into Flash? Although I haven't the faintest clue how to use a cookie.
The server is equipped with the typical PHP/CGI/mySQL. I'm using Flash 8.