HELP! File Upload
I'm about to rip all my hair out on this... Been struggling with it since last night, and still can't figure it out. Basically, doing a file upload through flash, which then calls a php file to handle moving it from the temp directory. Here's the basic code that handles that little bit:
When i set a name manually, however, it works. Thus I don't understand why. It should work the way it is, shouldn't it?
I think the problem lies with the flash... As when I call the file directly it returns the filename perfectly, yet when I run it through the flash, it returns an empty value. Do session variables work with a php page initiated from flash?
Edit: Am going to append the PHPSESSID to the end of the page request in flash, see if it helps
d4v1d: check for a reinitialization event that occurs when the file has been uploaded. You might want to check that the phase of calling the php file is not called on the event complete handler of the FileReference handle.
As for passing the PHPSESSID through a GET variable, then that is the way to go. I've tried myself a couple of ways some while ago, but nothing else worked.
|All times are GMT. The time now is 04:15 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0