Hi. This isn't a Telerik specific question but I do want to implement the solution with Telerik controls where possible and appropriate. I just wondered whether anyone could offer any initial comments or guidance.
I have external users for a site that I am developing and they can create photo albums and upload photos. I would appreciate any comments about how best to implement this. In particular:
- I assumed that all photos would be uploaded under a single folder (?) but should each user effectively have their own directory or should I just put all photos (potentially a large number) in one directory
- I had considered renaming files on upload and just creating a guid which I convert to a string and use as the filename on the server. I was then going to have a database table to record which user "own" the photo and the photo's filename. A further table can then create "virtual photo album" (ie have fields for album name, user...). The first table can have an additional field that allocates the photo to an album.
- Is there a way to resize .jpg files on upload?
- Are there any code examples here that show something similar to the above.
I have external users for a site that I am developing and they can create photo albums and upload photos. I would appreciate any comments about how best to implement this. In particular:
- I assumed that all photos would be uploaded under a single folder (?) but should each user effectively have their own directory or should I just put all photos (potentially a large number) in one directory
- I had considered renaming files on upload and just creating a guid which I convert to a string and use as the filename on the server. I was then going to have a database table to record which user "own" the photo and the photo's filename. A further table can then create "virtual photo album" (ie have fields for album name, user...). The first table can have an additional field that allocates the photo to an album.
- Is there a way to resize .jpg files on upload?
- Are there any code examples here that show something similar to the above.