Photo Album sample app - needs updating

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Photo Album sample app - needs updating

Post by Jaymer »

While this app is very nice (visually) as an example of Aware,
it is woefully inadequate for anyone who would need to learn how to do Images with aware.
Because it was done before "store in filesystem". (and now Store in S3)
It would lead someone down the path of storing images in the DB which has been arguably recognized (here on the forum) as "not the right way to do it". And doesn't provide examples on single vs. multi-file upload, and rules for defining your ImagePath variable.

It uses only this statement:

Code: Select all

CREATE Photo FOR EACH FileItem WITH Photo.Author=LoggedInAuthor,Photo.DisplayPhoto=FileItem.Doc 
Leaving a newbie unprepared for FILE_NAME & FILE_EXTENSION adventures, plus a PATH variable in SystemSettings and testing for, and creating subdirectories instead of dumping all images into the same folder.
Is it OK to dump 1000s of images in the same Container in S3? dunno. S3 doesn't care, but it that whats best?

It certainly doesn't use "best practices".
Just my two cents.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply