Commit Graph
55 Commits
Author SHA1 Message Date
Isaac Dickinson b4ee92ad44 Bump version number 2016-01-10 11:17:55 +00:00
Paulo Ricardo [PR] 1f1d3634b7 compatibility with Python2.7 2016-01-07 17:24:02 -02:00
Paulo Ricardo [PR] de7db72903 aparentemente corrige erro de encoding ao ler o favicon.ico no upload 2016-01-06 18:18:35 -02:00
Isaac Dickinson 9d6ff57bd4 Bump version number 2015-12-03 13:03:44 +00:00
bool.dev 131f0548a7 Proposed solution for #55, only certain files benefit from gzipping. 2015-12-03 13:56:31 +05:30
SunDwarf a95477f5a9 Bump version number 2015-11-23 18:38:58 +00:00
SunDwarf b0b49891ce Bump version number 2015-11-21 10:57:56 +00:00
bool.dev b433e5d436 Changed deprecation testing, to do it without looping and deep copying.
This avoids “TypeError” due to unexpected types in configs, i.e modules/objects.
2015-11-21 16:09:54 +05:30
bool.dev 1b6beb0fc8 Fixed MIMETIME instead of MIMETYPE typo. 2015-11-21 16:04:42 +05:30
SunDwarf 1b554bd3ab Update code to use FLASKS3_ prefix for config variables instead of S3_. Closes #47.
This will automatically translate your old S3_ config variables to FLASKS3_ variables until 0.3.0.
2015-11-21 09:10:50 +00:00
bool.dev bda55fa093 Added handling of special arguments to url_for.
The args: _external, _anchor, _method are ignored,
and _scheme can be used for per url scheme overriding of the config setting.
Added corresponding tests, and doc.
2015-11-20 19:01:05 +05:30
bool.dev a9b8e4b425 Added a S3_FORCE_MIMETYPE config flag to always add the content-type header to s3 files.
Added corresponding documentation for the flag.
2015-11-19 15:49:55 +05:30
Andrew Snowden aa335301f3 Fix for Python 3 and warning for unknown mimetype 2015-10-27 10:15:48 +02:00
Andrew Snowden 8714841deb Mimetype and switch to GZIP 2015-10-26 16:54:21 +02:00
Andrew Snowden 0e374741d0 Allow GZIP compression of assets 2015-10-26 15:58:52 +02:00
Franklyn Tackitt a74afe1ddb Fix headers for uploaded files
Boto3 uploads specific headers as parameters to put_object, and others
through the Metadata parameter. This commit seperates the metadata and
keyword parameter headers, and submits them appropriately
2015-10-08 13:36:15 -07:00
SunDwarf 0017c94f1a Merge branch 'filepath-filter-regex' of https://github.com/Jaza/flask-s3 into Jaza-filepath-filter-regex 2015-10-01 07:02:06 +01:00
SunDwarf 5f0e7752be Fix unicode bug, again?
Revert "Python2 is dumb."

This reverts commit d8ab184531.
2015-09-29 17:09:26 +01:00
SunDwarf d8ab184531 Python2 is dumb. 2015-09-28 16:34:59 +01:00
SunDwarf da771c6be7 Use coverage scripts. 2015-08-29 14:20:09 +01:00
SunDwarf 8259049138 Force HTTPS by default. 2015-08-28 20:19:18 +01:00
SunDwarf 6bc0039680 Merge pull request #33 properly. 2015-08-28 20:09:45 +01:00
SunDwarf cbd2140644 Prevent url_for from building when app.testing is True/existing.
Closes #23.
2015-08-28 19:52:41 +01:00
SunDwarf d1f544adf6 Add Python 3 support, and merge #38. 2015-08-28 18:09:26 +01:00
Franklyn Tackitt e39fc3e3ed Fix compatibility with old .file-hashes files
boto3 uploads /some/key to bucket//some/key, leaving part of the path
with "//", or a folder without a name. To remedy this, I had lstrip'd
the / from the key before upload. I didn't think about the fact that
boto2 works fine with this, and the old .file-hashes file would have the
keys with the prefixing forward slash. This solves that
2015-08-20 16:33:19 -07:00
Franklyn Tackitt 34cc79dcae Update to boto3 instead of boto
Reduce the total number of S3 calls by combining put_object with the
metadata and ACLs.
2015-08-20 16:21:45 -07:00
Jeremy Epstein ae2f3fbb49 fix keyerror if S3_HEADERS isn't set in config 2015-04-08 14:12:23 +10:00
Jeremy Epstein 93879c1bff new S3_FILEPATH_HEADERS setting, to set custom headers only if the filepath matches certain configured regular expressions. 2015-03-31 14:02:52 +11:00
Jeremy Epstein f6b7672656 instead of just checking 'relative_folder', check relative_folder + indiv. file name (and remove leading slash). 2015-03-31 10:21:59 +11:00
Jeremy Epstein df96e2e182 new parameter 'filepath_filter_regex' in create_all() and _gather_files(), to optionally only sync files in certain static dirs to S3. 2015-03-30 16:19:43 +11:00
Erik Taubeneck 142aa929a7 Merge pull request #28 from DisruptiveLabs/master
Fix uploading assets on windows machines
2014-12-19 11:54:58 -05:00
Erik Taubeneck 033f8ae958 Merge branch 'pr/21'
Conflicts:
	flask_s3.py
2014-12-19 10:15:46 -05:00
Frank Tackitt 683f0fb522 Fix uploading assets on windows machines 2014-07-22 10:40:18 -07:00
Erik Taubeneck 79de571eb0 formatting fixes 2014-07-16 11:57:35 -04:00
Erik Taubeneck e2701738bb add region config option, use boto.s3.connect_to_region 2014-07-16 11:57:17 -04:00
Andrew Snowden 8e3af19c60 Tests for only uploading modified files 2014-06-23 18:17:36 +02:00
Andrew Snowden ca440a285f Fix elif to else 2014-05-30 14:47:41 +02:00
Andrew Snowden 9ee8545918 Only upload modified files to S3 to improve speed 2014-05-30 14:45:02 +02:00
Andrew Snowden ca86134782 Work around BucketAlreadyOwnedByYou
Buckets outside of the standard region will raise an error if you try
create them and they already exist. See:
https://forums.aws.amazon.com/thread.jspa?threadID=119095
2014-05-29 18:23:29 +02:00
Joe Friedl 2883db1e3d Make S3 URL style configurable 2014-02-10 13:45:49 -05:00
Joe Friedl c2c002ff2d Add a default for S3_URL_STYLE 2014-02-10 13:29:57 -05:00
Erik Taubeneck 42104fe288 config-default: check for app.debug in init_app rather than each call to url_for 2013-12-06 14:15:28 -05:00
Erik Taubeneck a24098adc0 added S3_CDN_DOMAIN support 2013-06-12 11:28:03 -04:00
Hannes Ljungberg c07be84a57 Check for S3_USE_CACHE_CONTROL boolean 2013-06-11 01:41:35 +02:00
Hannes Ljungberg 30190f7715 Updates issue #7 - Set old S3_CACHE_CONTROL in S3_HEADERS on init and
doc fixes.
2013-06-11 01:38:03 +02:00
Hannes Ljungberg 8c0eff3f97 Updates issue #7 - Brings back S3_USE_CACHE_CONTROL setting and fixes
some documentation issues.
2013-06-11 00:52:04 +02:00
Hannes Ljungberg a5f9df5012 Added support for setting custom headers for files uploaded to s3. 2013-05-01 14:05:34 +02:00
Edd Robinson 1081e6754e general tidy up and version bump 2013-03-10 16:17:31 +00:00
Edd Robinson 23d3f4ada8 Contribution for #4 breaks existing tests. Slight change to fix this and test S3_USE_CACHE_CONTROL. Finally, it's preferable to take app as argument for functions that are involved in one-time asset upload, so made that modification too. 2013-03-10 15:47:25 +00:00
Rehan Dalal a9d136264c Add support for Cache-Control header 2013-03-07 22:01:23 -05:00