Marc
21d06ce7d0
Merge pull request #13996 from strapi/fix/upload-image-without-extension
...
Fix: upload media image with non standard urls
2022-08-17 09:29:29 +02:00
Pierre Noël
8668ba9aea
fix eslint issues
2022-08-11 16:59:02 +02:00
Marc-Roig
e34381faff
Merge branch 'master' into fix/upload-image-without-extension
2022-08-11 16:34:48 +02:00
Marc-Roig
654e65c6ae
wrap image uploads with promise all
...
wrap image uploads with promise all
2022-08-11 16:21:19 +02:00
Alexandre Bodin
cf49ddbbfc
Prettier and backend fix
2022-08-11 10:20:49 +02:00
Marc-Roig
08cb683bd1
clean url when uploading media from url
2022-08-08 14:06:30 +02:00
Marc-Roig
5a90357622
get extension from mime type if not available
2022-08-08 10:38:42 +02:00
Marc-Roig
4de86c4927
get extension from filename when bin
2022-08-08 09:37:37 +02:00
Marc-Roig
41dae37e1f
get extension from file name
2022-08-08 09:33:01 +02:00
Marc-Roig
97c695f597
add prefix to extension
2022-08-05 16:53:41 +02:00
Marc-Roig
de8ffeaa7b
extract file type from mime type if possible
2022-08-05 15:50:27 +02:00
Marc-Roig
03c8ba6bba
fix optimization file
2022-08-04 17:16:43 +02:00
Marc-Roig
d61104de72
check if image is faulty in enhanceFile
2022-08-04 12:56:58 +02:00
Marc-Roig
5b0bcab7b1
move try catch to image manipulation
2022-08-03 20:39:44 +02:00
Marc-Roig
38bd435f2f
test corrupt image upload
2022-08-03 12:48:12 +02:00
Marc-Roig
09fdd984c1
test upload image
2022-08-01 15:53:03 +02:00
Marc-Roig
f0b67b9ec5
add function for uploading image
2022-08-01 12:14:13 +02:00
Marc
47a4486943
do not override width and height
2022-07-30 10:14:37 +02:00
Gustav Hansen
4fcb38d53d
Merge branch 'master' into features/ML-folder
2022-07-05 12:53:51 +02:00
Pierre Noël
c69ac511f4
Save dimensions for svg and gif images
2022-06-16 17:56:12 +01:00
Juan Jimenez-Anca
fb28c2275b
add missing await
2022-05-20 23:23:50 +02:00
Pierre Noël
922ade1619
files uploaded through the content API go in a specific folder
2022-05-17 11:54:26 +02:00
Pierre Noël
8d5fe3b431
apply feedback
2022-05-13 16:10:18 +02:00
Pierre Noël
8abc6a73cb
apply feedback
2022-04-28 13:29:04 +02:00
Pierre Noël
587b62ea7b
replace path by location + add location to files
2022-04-28 13:29:04 +02:00
Pierre Noël
ada5553977
remove path for files + add base for delete folders
2022-04-28 13:29:03 +02:00
Pierre Noël
9476065472
add ability to set and change file folder location
2022-04-28 13:29:03 +02:00
Nick Frasser
8747947cf3
Ensure provider is always assigned on uploaded file
...
Previously the uploaded file data was assigned a provider in the conditional block that calculated dimensions on supported images. This caused the provider to be stored as null in the database for some image uploads such as SVG. The provider property is now assigned unconditionally
2022-03-21 23:22:47 -04:00
Pierre Noël
70b2c3f892
change function name
2022-03-01 14:52:31 +01:00
Pierre Noël
8265a9efdf
Fix the upload of files directly to an entity
2022-02-28 17:44:18 +01:00
Pierre Noël
8067dae25b
fix replace + refactor tmpWorkingDirectory
2022-02-23 11:42:39 +01:00
Pierre Noël
7fdd9415d7
better handle optimization
2022-02-23 11:42:39 +01:00
Pierre Noël
1b48050440
migrate aws and cloudinary providers
2022-02-23 11:42:38 +01:00
Pierre Noël
7cf2821451
migrate graphql upload to use streams + use fs-extra
2022-02-23 11:42:35 +01:00
Pierre Noël
186ebfd06e
use streams instead of buffers
2022-02-23 11:38:54 +01:00
Convly
25e62db93a
use 'sanitizers' instead of 'utils'
2021-11-10 17:08:54 +01:00
Convly
16ab717fb2
Merge branch 'releases/v4' of github.com:strapi/strapi into v4/new-sanitize-fixes
2021-11-08 15:53:58 +01:00
Convly
8d4f8ddd57
Simplify & abstract common sanitize logic
2021-11-08 15:52:42 +01:00
Pierre Noël
c6a5a047d6
Merge branch 'releases/v4' into v4/error-handling
2021-11-05 10:40:11 +01:00
Convly
7c560e3b94
Move the eventHub sanitize logic to the eventHub declaration
2021-11-05 10:36:10 +01:00
Jean-Sébastien Herbaux
7f285fb755
[V4] Enhanced sanitize & remove restricted relations from content API's payloads ( #11411 )
...
* Rework sanitizeEntity, first iteration
* remove console.log
* Remove useless comments
* Fix e2e tests
* Fix up user e2e test
* Fix remove-restricted-relations visitor
* Handle grapqhql resolver, prevent access to restricted relations
* Handle polymorphic relation in the related visitor
* Remove morph attribute if empty
* Use only the find action to check if the relation is allowed
2021-11-04 15:47:53 +01:00
Pierre Noël
b4c9ad0440
refacto graphql errors
2021-11-04 11:42:43 +01:00
Pierre Noël
b58274aecb
refactor error handling
2021-11-04 11:41:29 +01:00
Dieter Stinglhamber
7e89f091da
remove count route from the upload plugin
2021-10-21 14:33:22 +02:00
Alexandre Bodin
7676bf8890
Move ML find many to find page
2021-10-07 17:23:42 +02:00
Pierre Noël
0f123ceb39
fix RBAC
2021-09-27 11:08:48 +02:00
Pierre Noël
d02c7ab741
Use new filters format in the upload plugin
2021-09-27 11:08:47 +02:00
Alexandre Bodin
0f3f984ea7
Init migration v4
...
- Hooks registry
- D&P CT migrations
- i18N CT migrations
- Umzug with js / sql migrations
- Eslint updates
2021-09-13 12:03:12 +02:00
Alexandre Bodin
566805c8ae
Update test on /api
2021-09-07 21:29:34 +02:00
Alexandre Bodin
575cbbdc7c
Migrate plugin getters
2021-08-19 23:30:49 +02:00