CenterForDigitalHumanities / TPEN28

Split front/back ends from each other
3 stars 2 forks source link

Adjust Private Image Upload Location #681

Closed thehabes closed 1 year ago

thehabes commented 1 year ago

vlcdhprdp01 has a symlink in /images/userimages/ to vlcdhimgp01/data/userimages/. Since MySql data private upload image have /images/userimages/ encoded on them, the properties file notes uploadLocation=/.

TPEN cannot write to the root directory /. imageUpload does File dir = new File(directory + "/" + uploader.getLname() + "/" + ms.getID()); and so is failing. We are changing image upload java to do File dir = new File(directory + "images/userimages/" + uploader.getLname() + "/" + ms.getID());

This was tested and was successful. It produced http://tpenner.rerum.io/TPEN/transcription.html?projectID=9107