Hi all,
First; I'm not sure if I picked the right subforum for this topic. If not, please be so kind as to move it over to the right one :)
Currently our company is running it's intranet-site using DNN 5.2.3. Next to some custom DNN-modules, I also developed a custom profile-datatype, based on the GMail-uploader (circling around on the internet), for letting users have a photo in their profile. This is working fine, but it does have it's flaws (no SSL-support, for example).
Now this: I recently performed a test-upgrade from DNN 5.2.3 to 5.6.1 on a copy of our intranet-environment, where I, amongst some other changes, discovered that DNN now has it's own image-datatype for using as a field in the user profile. It seems to have a nice, intuïtive, interface.
As I'm already doing a little brainstorming about replacing our custom photo-datatype with the default one that DNN includes, there are some questions about it, that I need answered.
Users are able to have several photo's uploaded at the same time, afterwards making them able to decide (pick) which one to use. There's however no way to delete an uploaded photo. Therefore, I have 2 questions about this:
1. Is there, perhaps, a hidden option somewhere to enable the possibility to have users delete photo's from their profile?
2. Is it somehow possible to limit the number of photo's, users are able to store at once?
The Image-datatype is storing the uploaded photo's in a tree of subdirectory's under the folder 'Users', in the portal's root. I can't exactly find out how the folderpath is being constructed per user. It seems the deepest subdirectory is the UserID. This is important to know for me, in case we migrate our current users' photo's to the new Image-datatype field and I have to move them over. Therefore my questions on this:
3. How is the Image-datatype's per-user foldertree constructed?
4. What method do I use best to upload a users' image, for that user, to DNN, from code (C#) and/or database? I'm thinking perhaps there's either some function/procedure in one of DNN's DLL-files or a stored procedure in the DNN-database to do this, instead of manually having to add all records to their rightful tables.
That's it for now I think :)
Thanks in advance for answering!