Sign in to follow this  
SteveDeFacto

[web] Help with swfupload.

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this