francodacosta
18 Feb 2009, 5:04 PM
I have created a form field to upload and preview uploaded files.
It's very useful to me and I use it a lot on my cms so thought sharing it with all of you.
Some of it's features are
Preview uploaded Images, Flash Files, and Regular Files (icon only)
Styled input field - can be used as a replacement for input file fields
Compact size only occupies the space of a standard text box when closed
Delete File callback - useful in forms so you can delete a file without resubmiting the form
Only shows the file name, not the complete path
FakeFileName - you can have your file with and unique name (345653456765456.jpg) and show as if it was 'Garden.jpg'
Preview
http://www.francodacosta.com/usr/images/extjs/ext-media-field-closed.jpg
demo & download
project page (http://www.francodacosta.com/extjs/mediafield)
cheers
It's very useful to me and I use it a lot on my cms so thought sharing it with all of you.
Some of it's features are
Preview uploaded Images, Flash Files, and Regular Files (icon only)
Styled input field - can be used as a replacement for input file fields
Compact size only occupies the space of a standard text box when closed
Delete File callback - useful in forms so you can delete a file without resubmiting the form
Only shows the file name, not the complete path
FakeFileName - you can have your file with and unique name (345653456765456.jpg) and show as if it was 'Garden.jpg'
Preview
http://www.francodacosta.com/usr/images/extjs/ext-media-field-closed.jpg
demo & download
project page (http://www.francodacosta.com/extjs/mediafield)
cheers