Reputation: 35
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">
.
Upvotes: 3
Views: 6194
Reputation: 1008
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.
Upvotes: 3
Reputation: 4128
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.
Upvotes: 3
Reputation: 4733
This is not possible, the browse button is implemented in a very secure way, not allowing it to be styled or to do any tricks with it. This is because it could in some way allow the developer to trick the user in uploading a different file then intended.
Upvotes: 2