Bobby Glidwell
b77b0644b9
add support for actionOptions for provider upload and delete functions ( #9219 )
...
* add config.options to upload and delete functions
Supports options object in providerOptions which can contain any cloudinary upload/delete options
* add actionOptions to upload object and createProvider function
used to initialize upload/delete custom options which can be passed to a provider's upload/delete function
* Update README.md
added actionOptions description with link to available cloudinary upload/delete options
* wrapFunctionForErrors for upload and delete
* make actionOptions {} by default
2021-01-28 11:24:11 +01:00
Pierre Noël
567401f0c1
Fix/warn file too big ( #8033 )
...
* handle fileTooBig errors
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* add entityTooLarge error in provider plugins
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* fix linter
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* Add better error message for 413 errors in ML
Signed-off-by: soupette <cyril.lpz@gmail.com>
* refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
Co-authored-by: soupette <cyril.lpz@gmail.com>
2020-09-29 12:00:25 +02:00
Alexandre Bodin
5c6851e6ba
Update naming of permissions
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:45 +02:00
Pierre Noël
243c4ccc4e
add upload permissions to default roles + second refacto
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:52 +02:00
Convly
ef94229d81
Add Condition Provider & Permissions Engine
2020-07-08 11:05:49 +02:00
Pierre Noël
0ff2048ea9
add action plugins::application.settings.read
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:08 +02:00
Pierre Noël
e078c0b022
rename permissions to actions, inverted params of provider.get, separated formatter, add possibility to not specigy pluginName for ::application
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:07 +02:00
Pierre Noël
707746ef45
refacto
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:06 +02:00
Pierre Noël
ae0dcb9745
add route GET /admin/permissions
...
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:06 +02:00
Convly
a615f16bb5
Move orm condition directly into the pruneObsoleteRelations query
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-05-04 11:27:52 +02:00
Convly
8a2050add0
Apply PR feedback and fix tests
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-05-04 11:11:23 +02:00
Convly
4046e4227c
Assign type value directly in configurator properties
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-05-04 11:11:23 +02:00
Convly
079ad89781
Prune obsolete files relations on startup
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-05-04 11:11:22 +02:00
Alexandre Bodin
8bac1b1835
Add extend method in provider prototype
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-14 18:29:36 +01:00
Alexandre Bodin
55bdc146b7
Remove video preview setting
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-13 15:41:15 +01:00
Alexandre Bodin
e0b1c1181e
Change upload bootsrap comment
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-09 09:05:42 +01:00
Alexandre Bodin
b084cb1c65
Return type list and mimeTypes for filters
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-05 10:29:08 +01:00
Alexandre Bodin
196160dc1c
Add allowedType in ctb and init getMediaTypes api
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-05 10:29:07 +01:00
Alexandre Bodin
9159bb1c65
Migrate upload providers to new config system
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-02 16:46:44 +01:00
Alexandre Bodin
fd3511b511
Use strapi.plugins.upload.config for provider config
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-02 16:46:44 +01:00
Alexandre Bodin
2382332a4d
Update to a more recent CI os version
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-28 12:06:44 +01:00
Alexandre Bodin
68fbf77b30
Add new media lib settings. Remove db provider config
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-27 20:26:05 +01:00
Jim LAURIE
fd2aaecac1
Load scoped providers
2019-10-26 15:50:31 +02:00
Alexandre Bodin
3b47457f4f
make boostrap functions async only
2019-08-12 15:35:40 +02:00
Alexandre Bodin
3a640539d3
Fix missing default providers
2019-05-06 16:01:18 +02:00
Alexandre Bodin
a6bb0ada0a
Add setup script and build on dev if not build folder
2019-05-03 14:41:09 +02:00
Alexandre Bodin
9e9ff9907d
Refactor strapi load
2019-04-16 08:50:22 +02:00
Jim LAURIE
dac168cedb
Manage email and upload providers from an npm organisation
2019-03-01 17:09:19 +01:00
Jim LAURIE
2afb30b2f9
Deprecated providers
2018-11-27 17:30:35 +01:00
Jim LAURIE
404afec5de
Prefix providers
2018-10-19 09:26:09 +02:00
Jim LAURIE
c09f5138a2
Merge branch 'master' into eslint
2018-05-07 16:03:35 +02:00
soupette
e439333b42
Add eslint to plugin-upload backend
2018-04-30 18:00:01 +02:00
Jim Laurie
1ae9e65b42
Upload setup in bookshelf and create morph tables
2018-04-24 15:24:48 +02:00
Jim Laurie
8191c43ce5
Create tables is not exist instead of log queries
2018-04-23 16:09:01 +02:00
Juampy
32095d08c5
Fix invalid timestamp default values for MySQL 5.7
2018-04-18 19:01:19 +02:00
Jim Laurie
ed63df0ae6
Fix delete file on aws s3
2018-03-07 14:18:15 +01:00
Aurelsicoko
1ee852c485
Fix upload providers loading
2018-03-07 11:26:53 +01:00
Aurelsicoko
fc53de4631
Only execute SQL query for SQL database
2018-03-07 10:01:58 +01:00
Jim Laurie
5cbfa32d48
Merge branch 'feature/upload' of github.com:strapi/strapi into feature/upload
2018-03-06 16:52:29 +01:00
Jim Laurie
2da0a339a9
Search case in-sensitive
2018-03-06 16:24:16 +01:00
Aurelsicoko
cc1ec5c1ea
Make CSS improvements on upload plugin
2018-03-06 15:49:11 +01:00
Jim Laurie
543f21cdb1
Fix PR feedback
2018-02-23 14:57:58 +01:00
Jim Laurie
64b7ecb1d0
Add boostrap comments
2018-02-22 15:41:24 +01:00
Jim Laurie
3f2111cbf9
Add some comments
2018-02-21 17:18:33 +01:00
Jim Laurie
b7ee56d78f
Add sizeLimit
2018-02-21 14:46:10 +01:00
Jim Laurie
5f51b6b767
Fix previous PR feedback
2018-02-21 14:23:12 +01:00
Jim Laurie
f12b0503ff
Get and update configs
2018-02-20 17:10:25 +01:00
Jim Laurie
ab93e7113f
Move upload in modules
2018-02-20 15:57:34 +01:00