View Issue Details

IDProjectCategoryView StatusLast Update
0007186mantisbtadministrationpublic2012-01-02 00:05
Reporteraskey Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status acknowledgedResolutionopen 
Summary0007186: Auto generate upload directories
Description

Would it be possible to get upload directories to create themselves ie

  1. i create a directory call uploads in mantis (config setting)
  2. I add a new project test
  3. the system creates a new sub directory for test in uploads
Tagsscreenshot, security

Relationships

related to 0001063 closedgrangeway About file uploads 

Activities

vboctor

vboctor

2006-09-29 01:36

manager   ~0013538

We should provide a configuration option to provide a default value for the upload directory. The administrator creating the project can then decide to leave it as is, or specify a sub-directory.

tballister

tballister

2007-02-01 14:42

reporter   ~0013994

Last edited: 2007-02-01 14:46

Here's a suggestion re: how it should work

  • The variable $g_absolute_path_default_upload_folder already defines an absolute
    path, as in: $g_absolute_path_default_upload_folder = 'C:\pub\mbt\docs';
    If defined as something like simply "docs", then the code treats it as .relative
    to the Web Site directory.
  • When displaying the "Upload File Path" the least significant child of the string
    should be parsed, get a '\' (Windows) or '/' (Unix/Linux) character appended,
    and then set into the "Upload File Path" field as an initial value. Ex: "docs\".
  • Administer then concatenates any arbitrary path, and submits.
  • Code should handle either the user did, or didn't, append a '\' or '/' char,
    test if the directory exists, and create it if not.

But, in almost any form, I'd like to see the priority of this raised. It really
isn't intuitive, or friendly, that just before pushing the submit button, the
admin user has to digress to Windows Explorer and create a directory (or to
$> cd /pub/mbt/docs; mkdir my; cd my; mkdir new; cd new; mkdir project). :-)

This inconvenience aside, Mantis seems to have some real world experience behind
it. Good job, folks.

Tom

AbsolutelyFreeWeb

AbsolutelyFreeWeb

2011-12-31 03:47

reporter   ~0030744

Related to 0001063