Drag and drop images into the editor - configure target folder

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
2/1/2014 2:30:13 PM
Gravatar
Total Posts 533
feet planted firmly on the ground

Drag and drop images into the editor - configure target folder

I noticed that all dropped images go into sites\N\media. I think a valuable enhancement would be to have a config setting on the HTML feature that could override this with a preferred folder for dropped files associated with that content (e.g. sites\N\media\blog). Otherwise we will get an unmanageable pile of stuff in \media.

2/2/2014 1:32:56 PM
Gravatar
Total Posts 18439

Re: Drag and drop images into the editor - configure target folder

There are some challenges with a feature instance setting for the dropped file upload location.

The service url that handles the file upload is not aware of the feature or page that is posting to it. It only knows about the current user file system permissions and where the root folder of that is ie media or a user specific folder for some users

So if we made a setting at the feature instance and if we managed to pass that setting as a parameter with the upload there could be a case where the setting location is not allowed by the current user who does have edit permission but has less privileged upload permissions, in which case we would have to just log the error and maybe fallback to the user allowed location.

If the user wants to upload to a specific location they can still select the location and use drag and drop on the file dialog page. So we're talking about a few clicks difference to get complete control vs less control but easier.

Not saying it couldn't be done, just saying that there would be a few challenges.

I will probably get to this at some point, if someone wants to sponsor the development effort then it could be made a priority. 

You must sign in to post in the forums. This thread is closed to new posts.