PDA

View Full Version : Upload Files, but jpeg Only



4r53n1c
06-11-2006, 02:10 AM
I want to make a form that contain an upload form. And i want to upload an image to server (I'm using PHP). But I want, if user browse the file on filetype it show Jpeg, jpg files (commonly it is "All Files").

Thanx For your help

djr33
06-11-2006, 06:51 AM
I'm not sure if that's even possible.
You can choose which filetypes will be allowed using php, and you can make a note on your page.

Even if you can select which are allowed in the browse window, like some programs do, the user can still click the dropdown and choose "all types", like in those programs. So... might help them, but wouldn't prevent them from choosing those.

Might help; if there's a script for it.

I'd just google "input file" (like <input type="file">) and see if there's any attributes like that. It wouldn't be a javascript thing, I don't think.