Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove time limit and filesize limit, fixed naming issue

  • Loading branch information...
commit fb0ca113b09bcf92701af8694df9e73e72d5d0bf 1 parent 4d03fba
@daleharvey authored
View
8 docroot/client.dropup.js
@@ -107,9 +107,9 @@ var DropUp = (function() {
file = files[i];
- if (file.size > 1048576) {
- $(target).append("<li class='item error'><p class='error'>" +
- "1MB Limit</li></p>");
+ if (file.size > (1048576 * %)) {
+ $(target).append("<li class='item'><p class='error'>" +
+ "5MB Limit</li></p>");
continue;
}
@@ -170,7 +170,7 @@ var DropUp = (function() {
function init() {
- expireStored();
+ //expireStored();
displayStored();
target.addEventListener("mousedown", removeClicked, false);
View
2  docroot/index.html
@@ -27,7 +27,7 @@
<footer>
- <span id="warnings">* Images will be deleted after 24 hours</span>
+ <!-- <span id="warnings">* Images will be deleted after 24 hours</span> -->
<div id="links">
<a href="http://daleharvey.org">Developed by Dale Harvey</a> |
View
4 node.dropup.js
@@ -27,8 +27,8 @@ var DropUp = (function() {
["^/$", function() { serveFile(req, res, "/index.html"); }],
["^/drop.png$", function() { serveFile(req, res, "/drop.png"); }],
["^/upload$", uploadFile],
- ["^/([a-z0-9]*.(png|jpg).html)$", serveImgPage],
- ["^/([a-z0-9]*).(png|jpg)$", serveImg],
+ ["^/([a-zA-Z0-9-]*.(png|jpg).html)$", serveImgPage],
+ ["^/([a-zA-Z0-9-]*).(png|jpg)$", serveImg],
["[\w\W]*", serveStatic]
]);
};
Please sign in to comment.
Something went wrong with that request. Please try again.