Jump to content
  • Advertisement
Sign in to follow this  
SteveDeFacto

[web] Help with swfupload.

This topic is 3051 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The flash button that the samples use does not match my layout, I want to use a standard input button to trigger the open file window then upload the image and display it but how do I trigger it from an input button?

Share this post


Link to post
Share on other sites
Advertisement
Are you trying to give an upload ability in your Flash swf or just from a webpage?

If in Flash, you can draw your button however you want and use the File object to do your uploading.

If on a webpage, use the file upload control.

Happy coding.

Share this post


Link to post
Share on other sites
Actually I would prefer to directly call the File Open Dialog, is there a way to do this with java script?

Then I can just use an OnClick event, completely by pass swfupload, only display a given type of file and by pass the need for flash.

Share this post


Link to post
Share on other sites
Outside of Flash, I'm pretty sure you're limited to using the FileUpload control for prompting users with the file open dialog. Even within Flash you must utilize a particular control to allow an upload to occur.

In the web environment, the developer is not allowed to have access to the user's harddrive without their knowledge.

I'm sure you understand the security considerations.

Happy coding!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!