Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Adding images to a blog post, but selecting from a server directory?

Hey all, I have built a simple website for a client, using PHP. The website includes a custom built content management system, where the client can add blog posts, users, categories (for the blog post) and a media section where the user can upload images to be used in a blog post.

The problem I have is, how can i have a button on the add post form to be able to browse the server side image upload directory?

any suggestions would help!

1 Answer

Casey Ydenberg
Casey Ydenberg
15,622 Points

Did you find a solution? I think you would have to include the images directory in www, restrict access, and allow an AJAX request from the blog.