Automatic folder creation under "/system" folder

1 view
Skip to first unread message

Alexander Obuhovich

unread,
Nov 25, 2009, 7:05:07 AM11/25/09
to In-Portal Development

To be able to upload something it's required to create target folder (once per field) and "/resized" subfolder under it and set proper write permissions on them. Then created folder name should be specified in corresponding field declaration in unit config. This is potential place for typing errors, because developer could:

  • create one folder and then specify other folder name in unit config;
  • forgot to create folder or set correct permissions when deploying site on production/development server.

This is why automatic folder creation could speed-up development. Buy applying proposed approach (patch) we could gain advantages mentioned below:

  • eliminate potential error source;
  • automate process and increment development efficiency.

Proposed patch is just a start for automatic folder creation. For example folder creation code could be moved to central place, like FileHelper and used, when needed.

Imported from wiki, originally suggested by SergeyG.

--
Best Regards,

http://www.in-portal.org
http://www.alex-time.com
automatic_upload_folder_creation.patch

Alexander Obuhovich

unread,
Dec 23, 2009, 4:13:19 AM12/23/09
to In-Portal Development
Here is the task: http://tracker.in-portal.org/view.php?id=482 (0000482: Automatic folder creation under "/system" folder).
Reply all
Reply to author
Forward
0 new messages