mirror of
https://github.com/Ellpeck/ObsidianJustSharePlease.git
synced 2024-06-02 23:43:37 +02:00
slightly change plans
This commit is contained in:
parent
37a9d654e6
commit
5280db9cf6
|
@ -1,5 +0,0 @@
|
|||
ExpiresActive On
|
||||
ExpiresDefault A2592000
|
||||
ExpiresByType text/html A60
|
||||
|
||||
Options -Indexes
|
|
@ -1 +0,0 @@
|
|||
// TODO only accept deletions if the password matches the deletion password from the upload
|
|
@ -73,6 +73,7 @@
|
|||
if (hash.startsWith("#"))
|
||||
hash = hash.substring(1);
|
||||
$.ajax({
|
||||
// TODO change this to use GET request on share.php rather than trying to get the file directly (which is in ../data and inaccessible!)
|
||||
dataType: "text",
|
||||
url: `${hash}.md`,
|
||||
success: t => {
|
8
server/public/share.php
Normal file
8
server/public/share.php
Normal file
|
@ -0,0 +1,8 @@
|
|||
// TODO request content using GET
|
||||
|
||||
// TODO upload using POST
|
||||
// TODO when uploading, generate and send back Guid and store in meta file alongside data
|
||||
// TODO when uploading, also generate and return a deletion password that is also stored in meta file
|
||||
|
||||
// TODO delete using DELETE
|
||||
// TODO only accept deletions if the password matches the deletion password from the upload
|
|
@ -1,3 +0,0 @@
|
|||
// TODO when uploading, generate and send back Guid and store in meta file
|
||||
// TODO when uploading, also generate and return a deletion password that is stored in meta file
|
||||
// TODO figure out some way to make the meta file "hidden" to the web server - maybe subfolder with denied access in apache?
|
Loading…
Reference in a new issue