PDA

View Full Version : Media Field



francodacosta
24 Apr 2009, 8:05 AM
It's a form field to upload and preview uploaded files.

Features


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

jay@moduscreate.com
24 Apr 2009, 10:45 AM
Looks pretty cool but...
http://tdg-i.com/img/screencasts/2009-04-24_1444.png

I don't get it. I can select anything and put it in any field and it does not make adifference.

syscobra
24 Apr 2009, 11:07 AM
Looks pretty cool but...
http://tdg-i.com/img/screencasts/2009-04-24_1444.png

I don't get it. I can select anything and put it in any field and it does not make adifference.
hey Jay didn't tryed it out, but you are charging a .jpg on the swf demo?, and i see you put it in avi demo too...
Maybe you have to put it in the image field demo...

francodacosta
24 Apr 2009, 11:08 AM
You can only preview files after they are uploaded.

It's a way to show users what file they have previously uploaded in a compact way

syscobra
24 Apr 2009, 11:09 AM
Just see that you have to submit the form to get the image on the server side to display... he didn't implemented that on the server side maybe thats why you cant see your own image... :D

francodacosta
24 Apr 2009, 11:37 AM
I use this a lot in forms to allow a previously uploaded image to be seen or deleted.

for me it's useful because it saves a lot of space

jay@moduscreate.com
27 Apr 2009, 9:14 AM
Definitely kudos for sharing dude :)

francodacosta
16 Jul 2009, 2:17 PM
I'm glad you liked it Jgarcia