Kung Fu Kung Fu

Fujian White Crane Kung Fu

Zope Zope

What I have and am doing with Zope

Photos Photos

Photoalbum, both old and new.

Receptsamlingen Receptsamlingen

In Swedish only. About my "Collection of Recipes" website.

Contact me Contact me

My contact details and how to contact me.

  Mobile version of this page Mobile version of this page


 

File attachment widget with Javascript

http://www.peterbe.com/plog/file-attachment-widget/test.html

javascript, widget, file, attachment, file upload, gmail

25th of February 2005

The Gmail user interface has a good way of dealing with file attachments that I would like to incorporate into the IssueTrackerProduct Add Issue page to make it easier and more flexible to use.

Unlike Gmail, the IssueTrackerProduct can't rely on Javascript so this has to work equally well in Lynx, IE or Firefox. The Lynx people will have to do with the existing interface where you get a list of file attachment inputs. The people with Javascript support will get a hyperlink that when clicked shows a file input box.

Without further ado, please have a test

Did it work?
Was it user-friendly do you think?
Do you prefer the old fashioned input?

The idea is that the Javascript is to be driven by server logic (e.g. Zope) because the server defines a maximum number of file uploads and the form input should reflect this.

Some work is still needed to make this more compact and easily deployable but for now, please give me your feedback on what you've seen.


Comment

Peter Bengtsson - 16th June 2005  [«« Reply to this]
Just tested. This works with Konquerer.
Nino - 4th January 2007  [«« Reply to this]
Seems to work with firefox 2.0
Kevin Marksteiner - 5th January 2007  [«« Reply to this]
G'day Peter.
I am new at website building so I am quite 'stupid'. I love your file attachment widget and would like to incorporate it into my site for the user to upload pictures and then press submit to send to my email, contents of my form plus the attached pictures. I want the user to be able to send up to 8 pictures an only in jpg, gif or bmp format. Are you able to help me with this??

Regards,
Kevin
Jim Myers - 26th October 2007  [«« Reply to this]
Hello Pete!

I am very interested in using your file-attachment-widget on my website: silkworth.net.

It would be great if this can become a possibility as my site is for historical purposes and I'd like to give the visitor to my site the opportunity to send attachments of what ever information they may have for me to concider adding to my site. It has grown to 2 GB's+ in size.

Please get back in touch with me and let me know if this can become a reality.

Thanking you in advance,
Jim Myers,
http://www.silkworth.net/sitemap.html

PS: It would be like giving your script a test drive on my site.
Bob - 27th February 2008  [«« Reply to this]
Hi Pete,

I am trying to do the same job that u have already done. Is that possible for u to share your code with me? The widget that u have made is very cool..

Cheers,
Bob
 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.