PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
My knowledge of php is very limited, basically I only ever use it to pass stuff from mysql to flash. I am trying to upload images via flash into a folder as well as into a database. I can send a variable of the file to be uploaded from flash to php in the form "C:\example\the_file.jpg" but I don't know how to then upload it. Here is my <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> code with no error handling...
I don't think flash allows you to have a file input field, at least not with flash 5 / the first mx. What you might have to do is let the users upload from an html form to upload
In theory you're right, flash doesn't have a file input feature but there are a few work arounds out there using frames and hidden forms activated by javascript, the most well known is probably Yamzbrowser. They only work in IE unfortunately. But I really want to make an admin section in flash and this little problem is the only thing in my way so if anyone could answer my original question that would be great. By the way flash 8 now supports file upload and download apparently, but it will be a long time before enough browsers have flash 8 to make it worth while using.