aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/To-Do-Code.md8
-rw-r--r--mod/filestorage.php9
-rw-r--r--version.inc2
3 files changed, 16 insertions, 3 deletions
diff --git a/doc/To-Do-Code.md b/doc/To-Do-Code.md
index 5bba2571e..3f264ea31 100644
--- a/doc/To-Do-Code.md
+++ b/doc/To-Do-Code.md
@@ -17,7 +17,7 @@ We need much more than this, but here are areas where developers can help. Pleas
* (Advanced) create a UI for building Comanche pages
-* Help with WebDAV and file storage implementation
+* Help with WebDAV and file storage implementation, especially replacing the fugly web UI.
* Extend WebDAV to provide desktop access to photo albums and existing file (attachment) storage
@@ -25,6 +25,12 @@ We need much more than this, but here are areas where developers can help. Pleas
* Events module - event followups and RSVP
+
+* Uploads - integrate https://github.com/blueimp/jQuery-File-Upload
+
+
+* replace the tinymce visual editor and/or make the visual editor pluggable and responsive to different output formats. We probably want library/bbedit for bbcode. This needs a fair bit of work to catch up with our "enhanced bbcode", but start with images, links, bold and highlight and work from there.
+
* Photos module - turn photos into normal conversations and fix tagging
* Provide RSS feed support which look like channels (in matrix only - copyright issues)
diff --git a/mod/filestorage.php b/mod/filestorage.php
index 0d92c0d2a..43ea17789 100644
--- a/mod/filestorage.php
+++ b/mod/filestorage.php
@@ -78,10 +78,17 @@ function filestorage_content(&$a) {
}
$file = intval(argv(2));
- $r = q("delete from attach where id = %d and uid = %d limit 1",
+ $r = q("select hash from attach where id = %d and uid = %d limit 1",
dbesc($file),
intval($owner)
);
+ if(! $r) {
+ notice( t('File not found.') . EOL);
+ goaway(z_root() . '/filestorage' . $which);
+ }
+
+ attach_delete($owner,$r[0]['hash']);
+
goaway(z_root() . '/filestorage' . $which);
}
diff --git a/version.inc b/version.inc
index fa2bfeab0..a90b55250 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2014-01-07.550
+2014-01-08.551