Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2019-12-08 | filesystem: Fix error on max file size | Jon Bergli Heier | 1 | -3/+2 | |
Move the chmod call into the try block so we always call this when add_file succeeds, otherwise new_file might not be set yet and we will get an UnboundLocalError. | |||||
2019-12-07 | s3: Delete file if add_file raises an exception | Jon Bergli Heier | 1 | -1/+5 | |
2019-12-07 | Add max file size configuration | Jon Bergli Heier | 4 | -3/+19 | |
This allows configuring max file sizes for both registered and anonymous users. For registered users the USER_FILE_SIZE_LIMIT is used, and ANONYMOUS_FILE_SIZE_LIMIT for anonymous users. If the size is not specified or None, the limit is not enforced. Setting the limit to 0 effectively disables uploads. | |||||
2019-12-06 | Default Storage.get_file thumb to False | Jon Bergli Heier | 1 | -1/+1 | |
Usually we want the file data, not the thumbnail. | |||||
2019-12-06 | Change bootstrap-filestyle name on drop or paste | Jon Bergli Heier | 1 | -0/+2 | |
This makes sure the upload form is visually updated when dropping or pasting a file. | |||||
2019-12-06 | Fix displaying total file size | Jon Bergli Heier | 1 | -3/+3 | |
Wrap the call to get_size() in a generator so we don't have to look up the files (if needed) twice. | |||||
2019-12-06 | Flash oauth error when server returns an error field | Jon Bergli Heier | 1 | -0/+3 | |
2019-12-06 | login: Add missing commit when updating session | Jon Bergli Heier | 1 | -0/+1 | |
2019-12-05 | s3: Fix typos | Jon Bergli Heier | 1 | -2/+2 | |
2019-08-17 | Fetch and store thumbnails via storage modules | Jon Bergli Heier | 4 | -28/+80 | |
This will allow us to remotely store thumbnails in case of S3. For S3 the thumb bucket is configurable to allow these to be stored separately. The S3 key for thumbnails does not conflict with files, so these can be stored in the same bucket if needed. | |||||
2019-08-17 | file_storage.filesystem: Set file mode if configured | Jon Bergli Heier | 1 | -0/+3 | |
Regression since b72ecc321c315bafe40cc7406e87e088564ab8a9. This is needed eg. when using X-Sendfile so that the web server can access the files. | |||||
2019-08-14 | Allow specifying minimum positives for virustotal results | Jon Bergli Heier | 1 | -1/+1 | |
2019-07-24 | fbin-scanner: Default STORAGE_MODULE to fbin.file_storage.filesystem | Jon Bergli Heier | 1 | -1/+1 | |
2019-07-24 | Add Docker config | Jon Bergli Heier | 3 | -0/+38 | |
2019-07-24 | fbin-scanner: Add support for file storage modules | Jon Bergli Heier | 1 | -17/+20 | |
2019-07-24 | gitignore: Add *.sqlite | Jon Bergli Heier | 1 | -0/+1 | |
2019-07-24 | Add file storage modules | Jon Bergli Heier | 5 | -41/+174 | |
Allows for storing files other places than the local file system. Currently the local filesystem and S3 are supported. | |||||
2019-07-23 | Make no file uploads message use all five columns | Jon Bergli Heier | 1 | -1/+1 | |
2019-04-08 | fbin-scanner: Fix size limit | Jon Bergli Heier | 1 | -1/+1 | |
2019-04-02 | fbin-scanner: Remove debug filter | Jon Bergli Heier | 1 | -1/+1 | |
2019-04-02 | fbin-scanner: Remove debug break | Jon Bergli Heier | 1 | -1/+0 | |
2019-04-02 | Add support for blocking files | Jon Bergli Heier | 3 | -2/+131 | |
Files are blocked if blocked_reason is non-NULL. This value is currently not exposed publicly, instead a 404 will be returned. Files are scanned using virustotal.com's public API if scanned is False. Scans are performed by the fbin-scanner.py script. If a match is found, blocked_reason is set to the payload received. Files that are not in VT's database will be automatically submitted and the script will wait for the scan to complete before continuing. | |||||
2019-03-27 | Return 404 if physical file does not exist | Jon Bergli Heier | 1 | -1/+1 | |
2018-08-06 | Add video list and video thumbnails | Jon Bergli Heier | 4 | -11/+35 | |
Add a separate video page for listing uploaded videos. The thumbnail endpoint now supports generating video thumbnails using ffmpegthumbnailer. | |||||
2018-07-18 | Fix writing thumbnails from transparent images | Jon Bergli Heier | 1 | -1/+1 | |
JPEG does not support alpha channels, so remove RGBA from the list of valid modes. | |||||
2018-02-15 | Add support for pasting files. | Jon Bergli Heier | 1 | -0/+6 | |
2017-08-16 | Added drag and drop support to the upload form. | Jon Bergli Heier | 2 | -1/+51 | |
2017-08-16 | Run debug app with threads to avoid hanging. | Jon Bergli Heier | 1 | -1/+1 | |
For some reason chrome sometimes does two requests on redirect, where the first in unused, causing the second to hang because we only process one request at a time. | |||||
2017-04-22 | Added upload API. | Jon Bergli Heier | 7 | -48/+205 | |
Also updated the API (previously help) page. | |||||
2017-04-09 | Fixed renaming files. | Jon Bergli Heier | 1 | -1/+2 | |
2017-04-09 | Major rewrite to use jab/oauth. | Jon Bergli Heier | 44 | -966/+1342 | |
Highlights: - Uses the oauth branch of jab. - Changed design to use bootstrap. - Some minor changes to functionality in file uploading and listing. - API is currently disabled and incomplete. | |||||
2017-02-11 | Fixed uploading small files. | Jon Bergli Heier | 1 | -2/+4 | |
For small files the file attribute is a StringIO object instead of a NamedTemporaryFile. For cStringIO we're not allowed to set the delete attribute, so check wether the object already has a delete attribute before attempting to set it. | |||||
2016-04-03 | Delete thumbnails when deleting files. | Jon Bergli Heier | 1 | -0/+3 | |
2016-03-28 | Auto-delete temporary files by default. | Jon Bergli Heier | 1 | -3/+2 | |
This fixes multipart upload where temporary files are created for all fields. Instead we explicitly set the uploaded file itself to not be auto-deleted. This doesn't work on Windows (see NamedTemporaryFile for more details). | |||||
2016-03-27 | Fixed formatting in API 'Unknown method' message. | Jon Bergli Heier | 1 | -1/+1 | |
2016-03-27 | Added the test_token API method. | Jon Bergli Heier | 1 | -0/+8 | |
This API method checks whether the provided token is valid or not. | |||||
2016-03-26 | Fixed error handling on image thumbnails. | Jon Bergli Heier | 4 | -12/+19 | |
Replaced jquery-lazyload with jquery.lazy which provides an onError event handler. | |||||
2014-02-10 | Use jab id instead of username as user key. | Jon Bergli Heier | 2 | -35/+24 | |
2014-02-09 | Return rendered templates as lists. | Jon Bergli Heier | 1 | -17/+17 | |
2014-02-08 | Updated help page. | Jon Bergli Heier | 1 | -4/+10 | |
2014-02-08 | Login using single signon via jab web, cleanup old stuff. | Jon Bergli Heier | 2 | -140/+80 | |
2014-02-07 | Added support for authentication via jab. | Jon Bergli Heier | 3 | -106/+92 | |
2014-02-04 | Added lazy load to image page.jabless | Jon Bergli Heier | 6 | -7/+22 | |
2013-10-01 | Added options for persistent login. | Jon Bergli Heier | 2 | -6/+32 | |
2013-10-01 | Fixed uploading when anonymous uploads are disabled while logged in. | Jon Bergli Heier | 1 | -1/+1 | |
2013-08-31 | Return 404 if file hash does not exist. | Jon Bergli Heier | 1 | -2/+2 | |
2013-08-30 | Added settings for registrations and uploads. | Jon Bergli Heier | 10 | -57/+113 | |
* create_active_users: Controls whether new user accounts are created as 'active'; accounts that are not marked as active will not be able to log in, and will be automatically logged out if they're already logged in. * allow_registration: Allow or disallow creation of new user accounts. Any attempts to access the registration page will result in an error message. * allow_anonymous_uploads: Allow or disallow uploading of files by anonymous (not logged in) users. Combined with either allow_registration or create_active_users, this will effectively create a private filebin where the admin must explicitly create or activate new users. | |||||
2013-08-30 | Properly return favicon.ico if it exists. | Jon Bergli Heier | 1 | -2/+8 | |
2013-08-30 | Added ip and accessed to the 'files' table. | Jon Bergli Heier | 2 | -7/+17 | |
2013-08-03 | Added some minor adjustments to look better on mobile browsers. | Jon Bergli Heier | 3 | -1/+4 | |