Browse through blog tags below:
Displaying entries tagged: file upload
Blog Entry Title Date Tags
blog image post - another test
March 25, 2007 - 6:30
- Splash 8 - file upload - image posting
another test...
screen shot of blog entry page:
blog image post
March 25, 2007 - 5:19
- Splash 8 - file upload - image posting
I've started testing the file upload code I wrote a few months ago. This was the first chance for me to test it on a hosting server that allowed file uploads via PHP. Much to my surprise, the code worked immediately. The biggest challenge this far has been adding the functionality to my existing blog entry page to utilize the new ability to add photos.

Quickly:
It took me a while to determine the best way to add uploaded photos to the blog entries. With the idea of future expansions to this code in mind, i decided to create a database table for all file uploaded. Every time I upload a file, a row containing a unique id, file path, file source, etc. is created. It currently doesn't contain file size, but likely will soon. Then I added a section to my "blog entry form" to include thumbnails of recently uploaded pictures. I figure there will be some blog posts where I wish to add more than one photo, so this way, I can upload the photos I want, then see a list of all of them, with the ability to add a photo wherever/whenever I want, in that entry.

With the idea of laziness/easy of use in mind, I think I might have gotten it to the point where I can just click one of the thumbnail images from the photos recently uploaded, and it will insert the link where ever the cursor is currently located in the blog post.

I know this code will need some tweaking, as well as some additional functionality such as determining where in the post it should float, captions, sizes, etc.

This is a very early beta test, and there is a good chance it will really mess up the whole page, so buckle up!
Here it is: