Forum Moderators: open
When I use an input like
<input type=file name="potw" accept="image/jpeg" size="45"> I'm new to forms so I don't even know where to begin trying to fix it.
I'm using a free cgi that came with my webhosting called FormMail. I figured that maybe the cgi just accepted text?
If someone could help me fix this cgi or make a new one or whatever.. any help would be greatly appreciated.
Also, how would I add more file types to the accept=?
accept="image/jpeg,gif"?
One comment, though is that you may need quotes around "file".
To add a second type to the list, I think you'll need to write the complete phrase, like this:
<input type="file" accept="image/jpg, image/gif" ....
I wonder, though, whether form mail can handle images. You'll probably have to check the specs to find that info.
Good luck!
This attribute specifies a comma-separated list of content types that a server processing this form will handle correctly.
Zollerwagner hit the nail on the head. The content type list [w3.org] for images can be found here:
HTH
What's probably missing is the enctype attribute of the FORM:
[w3.org...]
;)