Alex Gleason
ab9eabdf20
Add SetMeta filter to store uploaded image sizes
3 years ago
feld
2926713fe5
Merge branch 'deprecate-public_endpoint' into 'develop'
...
Deprecate Uploaders.S3, :public_endpoint
See merge request pleroma/pleroma!3251
4 years ago
Mark Felder
f0ab60189e
truncated_namespace should default to nil
4 years ago
Haelwenn (lanodan) Monnier
c4439c630f
Bump Copyright to 2021
...
grep -rl '# Copyright © .* Pleroma' * | xargs sed -i 's;Copyright © .* Pleroma .*;Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/ >;'
4 years ago
Mark Felder
c35e6fb516
Provide a non-nil fallback for Upload.base_url/0 for tests using TestUploaderSuccess as the uploader
4 years ago
Mark Felder
12528edc34
Fix another ad-hoc construction of the upload base_url
4 years ago
feld
fa63f1b55b
Apply 4 suggestion(s) to 2 file(s)
4 years ago
Mark Felder
e8bf060e6e
Move construction of S3 base URL with optional namespace and bucket to Upload.base_url/0
...
Now we should have a correct base URL for S3 hosted objects throughout the codebase.
4 years ago
Mark Felder
530fb5b29e
Avoid duplicate Config calls
4 years ago
Mark Felder
ad79983614
Fix URL generated for backup files, try to create a source of truth we can reuse throughout the codebase
4 years ago
Mark Felder
55562ca936
Merge branch 'develop' into feature/gen-magic
4 years ago
lain
aabc26a573
Pleroma.Upload: Set default upload name / description based on config.
4 years ago
lain
af7720237b
Upload: Restrict description length
4 years ago
href
f124f68205
Switch from gen_magic to majic, use Majic.Plug, remove Pleroma.MIME
4 years ago
lain
cc0d462e91
Attachments: Have the mediaType on the root, too.
4 years ago
Egor Kislitsyn
6802dc28ba
Add OpenAPI spec for PleromaAPI.AccountController
4 years ago
Mark Felder
05da5f5cca
Update Copyrights
5 years ago
Alexander Strizhakov
32d1e04817
ActivityPub actions & side-effects in transaction
5 years ago
Haelwenn (lanodan) Monnier
3c6fd0bb99
upload.ex: Remove deprecated configuration
5 years ago
feld
84fca14c3c
Do not prepend /media/ when using base_url
...
This ensures admin has full control over the path where media resides.
5 years ago
Haelwenn (lanodan) Monnier
69a5074893
Remove H1 in @moduledoc
5 years ago
rinpatch
e2fe796c63
Add some tests
6 years ago
rinpatch
5a73cae2be
WIP: Stop mangling filenames
6 years ago
rinpatch
4263edc9c9
Properly escape reserved URI charachters in upload urls
6 years ago
Haelwenn (lanodan) Monnier
106f4e7a0f
Credo fixes: parameter consistency
6 years ago
Mark Felder
0c08bd4181
Update Mogrify docs and warning for deprecated syntax to encourage
...
users to enable both strip and auto-orient
6 years ago
lambda
646bb87816
Merge branch 'fix/elixir-1-8-type-annotation' into 'develop'
...
Fix Elixir 1.8 type annotation issue
Closes #523
See merge request pleroma/pleroma!668
6 years ago
Haelwenn (lanodan) Monnier
9fcdca1bdc
Upload: Fix uploading with a : in the filename
6 years ago
Haelwenn (lanodan) Monnier
e3eb75bd23
Upload: Fix uploading with a ? in the filename
6 years ago
Maxim Filippov
e8eff9fe03
Fix Elixir 1.8 type annotation issue
6 years ago
Shadowfacts
42b7584068
URI escape file upload URLs
6 years ago
William Pitcock
980b5288ed
update copyright years to 2019
6 years ago
William Pitcock
2791ce9a1f
add license boilerplate to pleroma core
6 years ago
Maksim Pechnikov
e94c3442f4
updates
6 years ago
Maksim Pechnikov
074fa790ba
fix compile warnings
6 years ago
href
65e7307d68
Upload: bring back base_url
6 years ago
href
5d92431350
Fix deprecation warnings
6 years ago
href
02d3dc6869
Uploads fun, part. 2
6 years ago
href
b19597f602
reverse proxy / uploads
6 years ago
rinpatch
0d229613df
Fix lint error
6 years ago
rinpatch
7f20a3cf1f
Add Theora detection to upload.ex
6 years ago
href
5bb88fd174
Runtime configuration
...
Related to #85
Everything should now be configured at runtime, with the exception of
the `Pleroma.HTML` scrubbers (the scrubbers used can be
changed at runtime, but their configuration is compile-time) because
it's building a module with a macro.
6 years ago
William Pitcock
fa483cd7c2
upload: add new optional argument designating an upload size limit
6 years ago
Thurloat
af01f0196a
Add backend failure handling with :ok | :error so the uploader can handle it.
...
defaulting to :ok, since that's the currently level of error handling.
6 years ago
Thurloat
2ff25ac0ce
A hobbldey-working swift client.
...
apparently, all elixir openstack libraries are trash
luckily, the APIs are stupid easy.
6 years ago
Thurloat
9fc20ed572
works now, tested with profile photo upload on local backend.
6 years ago
Thurloat
dad39b24a1
add the behaviour, work on actually making it work.
6 years ago
Thurloat
8d2d7a8859
Implement uploader behaviour
...
run formatter <#
6 years ago
Thurloat
0df558a6a5
cleaning up a bit.
6 years ago
Thurloat
709816a0f8
example of flexible storage backends
6 years ago