Image

Imagezenmondo wrote in Imagephp 😡frustrated

Image upload to a mySQL database via php (a wasted day)

Well I've been planning my next php project, and its going to have registered users, I thought, "wouldn't it be cool if my users could have a userpic like on livejournal?" so I began research on uploading images.

Damn, that is hard. I followed a couple tutorials, but I could not get it to work. I can't find any information on what exaactly the form tag < input type="file" > passes back to a script. I couldn't get a file to upload to filespace, much less insert it into a database.

Anyone have any advice/code?

For just a cool lil' feature that I wanted, I wasted a whole day I could have spent actually developing my application.

(I think I will let a user specify a URL for an image, and they can host thier own damn userpic)