[web] Help with swfupload.

Started by
3 comments, last by Wan 14 years, 1 month ago
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?
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.
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.
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!
A FileReference can be created in code and isn't tied to a particular GUI.

This topic is closed to new replies.

Advertisement