Page MenuHomewrite.as

Support storing images locally
Open, Needs TriagePublic

Description

Overview

Admins should be able to choose to store images locally on their server.

TODO

Related Objects

StatusAssignedTask
OpenNone
OpenNone
OpenNone
OpenNone

Event Timeline

matt created this task.Aug 13 2019, 3:57 PM

What could be the better way to store uploaded images?

  1. Upload to folder which is publically accessible (exposed by nginx or Apache);
  2. Upload to private folder (only accessible by user which WriteFreely runs on) and have an endpoint to read image file and output it to the public?

Both has their pros and cons:

  1. Images on HTTP-accessible folder does not put any additional load on the server to process;
  2. Images on private folder can be as-is in their original form while publically shown image could be transformed: resized, watermarked, etc.