Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom file upload button

spent hours on end searching the net but it seems im looking for one thing and finding another, either that or what i want just cannot be done. i do not want to re-style the <input type="file"> i want to create a custom button that brings up a browse window, lets the user select a file of certain types, populates a seperate text box with the file name and stores the rest of the information in a way that could be passed to a php upload script after the user has filled in the rest of the form. So in other words i want to re-invent the <input type="file">.

like image 381
Nate Avatar asked Jan 28 '26 12:01

Nate


2 Answers

http://www.uploadify.com/demos/

Uploadify is a powerful and highly-customizable file upload script. In its simplest form, Uploadify is easy to get up and running with minimal effort and little coding knowledge.

Uploadify can also be modified to suits the needs of more advanced developers via the arsenal of custom options that are available.

http://www.uploadify.com/documentation/

buttonImg parameter : we can give the image/text which we wanted to show ie we can customize browse button.

like image 161
amolv Avatar answered Jan 30 '26 00:01

amolv


This can't be done in regular html, but possible to do using flash or silverlight etc. You might want to have a look at Plupload, which is a fairly foolproof upload solution in my opinion.

like image 21
Jon Skarpeteig Avatar answered Jan 30 '26 00:01

Jon Skarpeteig