26 Commits

Author SHA1 Message Date
Alexandre Bodin
cc9d23c3ac Merge branch 'develop' into features/media-lib
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-07 20:24:39 +02:00
Jean-Sébastien Herbaux
a583d1b859
Fix/#3184/fix server crashs on database change (#5703)
* Don't set connection field on create/edit operation on content-types & components

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Make sure that every component has a valid connection attribute

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove connection check on components load

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove default connections from core & webhook stores but make sure it's defined in the application lifecycle

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Fix component's associations that can be undefined instead of empty in populateBareAssociations

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove "default" connection from plugins' models

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove connection attribute from generated models (cli)

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Mutate each component instead of reassign

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Build core_store and webhook model based on the current config

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Add connection to templates conditionally (based on args)

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Set default value for description to undefined instead of empty string

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove unnecessary complexity

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Update getStarted models

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Fix attributes parsing for generate:model

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Removed tpl option from generate:model/api

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Remove tpl option from cli

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-04-07 16:31:44 +02:00
Alexandre Bodin
3889fb87dc Add previewUrl field and impl in cloudinary
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-16 14:09:35 +01:00
Alexandre Bodin
02d042769f Remove file sha that was not standard
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-10 17:26:15 +01:00
Alexandre Bodin
587cdb5a05 Save thumbnail in forats json
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-09 09:02:51 +01:00
Alexandre Bodin
b144b19372 Add thumbnail on upload and handle deletion
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-06 17:01:32 +01:00
Alexandre Bodin
8f6903ac52 Init image manipulation, add dimensions
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-06 17:01:31 +01:00
Alexandre Bodin
e5b319d81e Update file creation process with fileInfo
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-03 16:33:48 +01:00
Chris Winch
6e5eb9d724 update upload size type to decimal 2019-10-24 13:58:05 +01:00
Chris Winch
c9fd4535bc update upload file size type to integer so that graphQl can sort as expected 2019-10-24 09:44:52 +01:00
Daniel Kvistgaard
0ab5a8a407 Setting up provider_metadata field.
To store necessary metadata for upload providers. In this case it's used
for public_id and resource_type for Cloudinary.
2019-08-05 13:05:54 +02:00
Daniel Kvistgaard
04b91d9b34 Fix Cloudinary deletion of other files than images
Fixed by adding a resource_type on the file which is required for the
detroy method. It defaults to 'image', so if it isn't defined then it
will try to remove an image with the passed public_id.
2019-07-29 15:45:46 +02:00
Jesús Pérez
78b85e734c Fixes Cloudinary upload plugin "delete" method 2018-11-22 21:48:05 +01:00
Jakub Skořepa
4771cc9575
Revert previous changes and save hash to new field sha256 2018-08-09 19:46:23 +02:00
Jim Laurie
efdcc4cde9 Fix morph table creation 2018-04-24 16:19:17 +02:00
Aurelsicoko
0f581fa5c3 Be able to retrieve polymorphic association using GraphQL (File Upload) 2018-04-05 15:20:24 +02:00
Jim Laurie
ed63df0ae6 Fix delete file on aws s3 2018-03-07 14:18:15 +01:00
Jim Laurie
be7e95b48c Add createdAt updatedAt for mongoose 2018-03-05 17:26:55 +01:00
Jim Laurie
7af7922f2b Backend content type builder media type
Co-authored-by: soupette <cyril.lpz@gmail.com>
2018-02-26 16:33:27 +01:00
Aurelsicoko
7e6b762c58 Merge branch 'master' of github.com:strapi/strapi into feature/upload 2018-02-26 11:14:24 +01:00
Aurelsicoko
e63a1f19fc Handle empty relationships on morph side 2018-02-26 11:12:49 +01:00
Jim Laurie
543f21cdb1 Fix PR feedback 2018-02-23 14:57:58 +01:00
Jim Laurie
00d78b7133 Delete AWS S3 file 2018-02-22 14:43:10 +01:00
Jim Laurie
b7ee56d78f Add sizeLimit 2018-02-21 14:46:10 +01:00
Jim Laurie
ab93e7113f Move upload in modules 2018-02-20 15:57:34 +01:00
Jim Laurie
cf029dac07 Create db entry on upload and get uploads 2018-02-19 15:41:26 +01:00