hackmdio / codimd

CodiMD - Realtime collaborative markdown notes on all platforms.
https://hackmd.io/c/codimd-documentation
GNU Affero General Public License v3.0
9.1k stars 1.05k forks source link

[WIP] Move image path to the session scope. #1866

Open shohhei1126 opened 2 months ago

shohhei1126 commented 2 months ago

Work in progress for #1601

jackycute commented 1 month ago

Hi @shohhei1126,

Thanks for opening PR!

There is a use case that user uploads images in a note and later they like to reuse those image urls on the other platform (like external blog post or SNS) and those images will become inaccessible due to the session auth. This is the main reason why the uploaded images are public accessible by current design.