Weceem

Allow setting paths for uploaded files

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 0.3.1
  • Fix Version/s: 1.0-M1
  • Component/s: None
  • Labels:
    None
  • Request Controller:
    Please Select
  • External Supervisor:
    Please select
  • Executing Programmer:
    Please select

Description

Not sure if this is the right place for this but, I'm not sure how we will handle upgrades from version to version.

Given that many user files are stored in the WeceemFiles directory would any attempt to redeploy lose users files? I've not tried it. Personally, I've symlinked that directory, but it's something that should be checked as it could spell disaster for an end user.

Activity

Hide
Marc Palmer added a comment - 13/Jan/10 11:23 AM

Yes files are lost currently - although any sane person knows they need to backup before they redeploy. Obviously its easy to backup the application, and also easier to export the existing space.

I have always disliked the files living in the app's expanded folder. We already plan to site this elsewhere like we do the searchable indexes, with a default setting outside of the application. We'll get this done before 1.0

Show
Marc Palmer added a comment - 13/Jan/10 11:23 AM Yes files are lost currently - although any sane person knows they need to backup before they redeploy. Obviously its easy to backup the application, and also easier to export the existing space. I have always disliked the files living in the app's expanded folder. We already plan to site this elsewhere like we do the searchable indexes, with a default setting outside of the application. We'll get this done before 1.0
Hide
Jean-Noel Rivasseau added a comment - 25/Oct/10 1:47 PM

Hello,

This is also a feature we really, really need (currently I patched the source changing DEFAULT_UPLOAD_DIR, but this is really ugly).

We would like to be able to set a base upload path outside of the expanded folder so you would need to change all the calls to servletContext.getRealPath() I guess.

Show
Jean-Noel Rivasseau added a comment - 25/Oct/10 1:47 PM Hello, This is also a feature we really, really need (currently I patched the source changing DEFAULT_UPLOAD_DIR, but this is really ugly). We would like to be able to set a base upload path outside of the expanded folder so you would need to change all the calls to servletContext.getRealPath() I guess.
Hide
Marc Palmer added a comment - 15/Nov/10 3:31 PM

This is done via weceem.upload.dir setting now. If this is a file:// url it is any location in the file system, and the uploaded files are at "/uploads/". If this is not set to a file:// url but instead a string e.g. "/my-files/" then the files will be stored in-app at "<web-app>/my-files".

Show
Marc Palmer added a comment - 15/Nov/10 3:31 PM This is done via weceem.upload.dir setting now. If this is a file:// url it is any location in the file system, and the uploaded files are at "/uploads/". If this is not set to a file:// url but instead a string e.g. "/my-files/" then the files will be stored in-app at "<web-app>/my-files".

People

Vote (2)
Watch (1)

Dates

  • Created:
    23/Nov/09 11:14 AM
    Updated:
    15/Nov/10 3:33 PM
    Resolved:
    15/Nov/10 3:33 PM