View Full Version : Upload Picture
holtzy
02-17-2003, 07:16 PM
How would I go about uploading a picture from the users computer to the server? How do I bring up the "browse" window in windows from Flash? Thanks for the help! If there is a tut out there on this please point me to it.
JGizmo
02-17-2003, 08:06 PM
Hi, this is the kind of stuff I am working on in my project.
1) To create a browse button in Flash
You has to use Javascript and combine with the trick of using 2 frames in html to hide the input form, becasue flash dont has the browse function as html has. I cannot remeber the link of that example in .fla, but if you go search for "Browse button" in this forum, you will find it there.
2) To upload a picture
I am using perl and mySQL as backend, so I found a good perl script (so easy to find) for uploading function and change it a bit more to sending data back to flash.
However, some of my clients is using Mac and method I mentioned in 1) didn't really suitable for it as I found out Javascript act weird with different platform, so I suggest you do the uploading form in Html as a pop-up window or whatever and not from flash.
Regards
John
holtzy
02-17-2003, 08:41 PM
Thanks JGizmo. One more quick question. Does the folder on the server that you are uploading pictures to have to have any special permission setting, or can you just upload to any folder. Thanks again!
JGizmo
02-17-2003, 09:22 PM
1) have any special permission setting?
This depends on how you set it up your server, I use a window server, therefore dont really needed to do anything to a new folder. Not sure for unix, but you can always make a write perimission
2) can you just upload to any folder?
Yes, once you got your perl script or other cgi script, they must let you to customize your say folder directory, file extension, size, and more.
If I find the link for the script at work, I'll post it for you.
simontheak
02-18-2003, 08:27 AM
Hey JGizmo - just wanted to say, nice site! :D
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.