Commit Graph

18 Commits

Author SHA1 Message Date
BBaoVanC 70e84ec8f0
Remove unused flask Response import 2020-12-16 15:25:50 -06:00
BBaoVanC b11c7c2845
Strip EXIF from image before saving 2020-11-24 17:51:37 -06:00
BBaoVanC b20b78fd17
Fix syntax error at imgupload.py:109 2020-11-20 11:38:26 -06:00
BBaoVanC 63818bd371
Change usage of str.format() to f-strings 2020-10-04 11:13:59 -05:00
BBaoVanC 9910bc279c
Add imageName field to request a specific name to save to 2020-09-15 17:24:36 -05:00
BBaoVanC f100732e4d
Check if image with same name already exists 2020-09-15 17:20:41 -05:00
BBaoVanC dd069bf395
Add newline after block comments at beginning 2020-09-06 15:24:20 -05:00
BBaoVanC 7c1f449bce
Add "verify" field to request to not save image
This makes it easy for the user to debug authentication.
2020-09-05 18:55:56 -05:00
BBaoVanC 0dbcc0e380
Change file extension check to be case-insensitive 2020-09-05 16:21:50 -05:00
BBaoVanC b8b5a2518c
Change abort() calls to JSON responses
This makes the responses more consistent. Now, all responses are JSON.
2020-09-05 15:43:36 -05:00
BBaoVanC 6f64890e34
Remove unused imports from imgupload.py 2020-09-04 15:24:49 -05:00
BBaoVanC 9d9b93a9ee
Add proper shebangs and block comments 2020-09-04 10:47:20 -05:00
BBaoVanC 565a91e4ec
Remove uploadkeys encryption features
It doesn't really make sense to encrypt the keys, but store the secret
literally in the same directory. uploadkeys will now be stored in
plaintext. The branch `legacy` has the old code from before this commit.
2020-09-03 21:44:58 -05:00
BBaoVanC 841bb513d3
Allow easy customization of filename generation
Added a new file called functions.py which contains user-customizable
functions, instead of requiring the user to edit imgupload.py.
2020-09-02 17:14:28 -05:00
BBaoVanC a5a22b7c88
Remove UPLOADKEYS_CHMOD option due to keygen.py
Since keygen.py is run as root, uploadkeys is owned by root. This causes
issues when imgupload.py tries to chmod the uploadkeys file since it
doesn't have permissions to chmod it.
Solution: remove UPLOADKEYS_CHMOD option
2020-08-31 21:14:09 -05:00
ItHertzSoGood 3d1304b3b0 added encryption to uploadkeys and added a key generator 2020-08-31 17:12:39 -07:00
BBaoVanC 4b624f3fed
Ignore settings.py and add settings.py.default 2020-08-31 18:48:22 -05:00
BBaoVanC e6dcb814fb Added files (v0.1)
Added the Python files so now the repository actually has something.
This will probably become v0.1 without any changes.
2020-08-31 17:29:54 -05:00