Notifications
Clear all

UserFiles

4 Posts
2 Users
0 Reactions
537 Views
(@flaengel)
Posts: 15
Eminent Member
Topic starter
 

Another Question,

all the files I Upload get a "crazy name" ?? I'm uploading a ZIP file, and get's like....

90bf7383cc7b544d48a3bb67e0e33c30.dat

Is there a way to retreive the original name, how about the extension, why does it get as DAT. That would be much important....

Also i saw I can get a "file.idAccount" to see the owner of the file, but that's it... To get the user related (like name and last name for example) I have to get user by user with the loadUser and supply the idAccount? is that correct ?

 

Thanks; 

 
Posted : 18/08/2014 3:44 pm
(@flaengel)
Posts: 15
Eminent Member
Topic starter
 

Another question....

Why sometimes the CBManager.instance.LoadUser(int); returns a null for user, and sometimes not?

(suppling always a real id for the user), I cannot recognize a pattern... is just random ... any idea ?

 
Posted : 18/08/2014 10:51 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

The files are randomly set in the class FileUpload, I will add a config option to not rename the uploads in the next update. Not sure why you're having the file extension renamed from .zip to .dat, there's nothing hardcoded like this in FileUpload class.

About the LoadUser issue, it's probably a temporary internet connection lost sometimes because I never experienced this issue.

Anyway I'm in holidays now and will return back at work on 25th.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 18/08/2014 11:09 pm
(@flaengel)
Posts: 15
Eminent Member
Topic starter
 

I realized the in the table CBuserFiles, theres a collum named "NAME" that was parcially implemented....

Made it work... guess I'll do fine now....

 

tks

 
Posted : 19/08/2014 4:44 pm
Share: