Developer forum

Forum » Development » Files and upload path

Files and upload path

Jan Sangill
Reply

Hi,

I have a site where people have a hard to following structure in the filemanager.

I was thinking of somehow hooking in - and if they had placed images in the root folder of somehing where they are not allowed, then move this picture to correct folder - depending on who is logged in. And save the reference correctly.

Any way to hook into the file upload process and change path?

Regards
Jan


Replies

 
Jan Sangill
Reply

bump?

 
Nicolai Pedersen
Reply

Hi Jan

There are no hooks on upload... You can use permissions though to limit where people have access.

You can maybe also create a FileSystemWatcher to monitor uploads in the root: https://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher(v=vs.110).aspx

BR Nicolai

 

You must be logged in to post in the forum