diff options
| author | tim b <timb@camcompu.home> | 2010-04-07 18:59:50 -0700 |
|---|---|---|
| committer | tim b <timb@camcompu.home> | 2010-04-07 18:59:50 -0700 |
| commit | 6440348618ade4fbcb541c40473074833a47d198 (patch) | |
| tree | 537ab7e4f0af7deba51bbfb360fe490968d651f8 /static/upload-test.html | |
| parent | 4f09c8a882e8ae2ad1c7944a8c2a5939c9c9f7ad (diff) | |
| parent | 42df4633bb7588e8632e45013880ee4fc2bc3d6c (diff) | |
fixing merge conflicts
Diffstat (limited to 'static/upload-test.html')
| -rwxr-xr-x | static/upload-test.html | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/static/upload-test.html b/static/upload-test.html deleted file mode 100755 index 1590b66..0000000 --- a/static/upload-test.html +++ /dev/null @@ -1,47 +0,0 @@ -<html> - <head> - <title>DUMP file upload test</title> - <script type="text/javascript" - src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> - <script type="text/javascript" - src="/static/js/jquery.form.js"></script> - - <script> - args = 1; - $(document).ready(function() { - var error = function(resp) { - $('#result').hide().css({'color': 'red'}) - .html(resp.statusText).fadeIn(250); - } - var success = function(imageUrl) { - imageUrl = $.trim(imageUrl); - console.log(imageUrl, imageUrl.length); - if ($.trim(imageUrl) == "NOT_LOGGED_IN") { - error({statusText: "Not logged in!" }); - return; - } - $('#result').hide().css({'color': 'green'}) - .html('<img src="' + imageUrl + '">').fadeIn(250); - } - - $('#test').ajaxForm({ - url: '/upload', - type: 'POST', - dataType: 'text', - success: success, - error: error - }); - }); - </script> - </head> - <body> - <h2>Upload File</h2> - <form id="test" enctype="multipart/form-data"> - <input type="hidden" name="room" value="RoomA"> - <input type="file" name="image"> - <br /> - <input type="submit"> - </form> - <div id="result"></div> - </body> -</html> |
