Forum Moderators: coopster

Message Too Old, No Replies

adding images to news post via cms

looking for suggestions to implement this

         

generic

7:49 pm on Jan 11, 2007 (gmt 0)

10+ Year Member



Hi all,

I'm trying to figure out how I'm going to add images to my news posts, as in, what is the best (simplest) way to accomplish this. Security isn't a (really) major issue for me as I'll be the one doing the updating and it's secured through the login. I'd like to be able to do something where I could upload an image to be posted along with the news details or maybe upload images to a 'files' folder and then just pick from a dynamically generated list which image to associate with the post before I submit it to the db.

Hopefully this is clear enough. Any suggestions?

Thanks,

rk

eelixduppy

9:19 pm on Jan 11, 2007 (gmt 0)



There is great documentation on Handling File Uploads [php.net]. This is where you should begin your research. You might want some image resizing or something, but first get this down solid. This will allow you to upload your images along with the text from a web form.

Best of luck! :)

generic

4:54 pm on Jan 23, 2007 (gmt 0)

10+ Year Member



That's great, thanks. I've got file uploads working no problem. What would be ideal is if there was a tutorial or something available that might show me how to upload an image and include it directly into the post I'm currently working on via AJAX or some other non-refreshing method, i.e., I want to submit the form info along with the (selected/uploaded) image at the same time. Any thoughts?