Go to file
jordi fita mas 97cf117da3 Manage all media uploads in a single place
It made no sense to have a file upload in each form that needs a media,
because to reuse an existing media users would need to upload the exact
same file again; this is very unusual and unfriendly.

A better option is to have a “centralized” media section, where people
can upload files there, and then have a picker to select from there.
Ideally, there would be an upload option in the picker, but i did not
add it yet.

I’ve split the content from the media because i want users to have the
option to update a media, for instance when they need to upload a
reduced or cropped version of the same photo, without an edit they would
need to upload the file as a new media and then update all places where
the old version was used.  And i did not want to trouble people that
uploads the same photo twice: without the separate relation, doing so
would throw a constraint error.

I do not believe there is any security problem to have all companies
link their media to the same file, as they were already readable by
everyone and could upload the data from a different company to their
own; in other words, it is not worse than it was now.
2023-09-21 01:56:44 +02:00
cmd/camper Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
debian Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
demo Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
deploy Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
pkg Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
po Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
revert Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
test Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
verify Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
web Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
.gitignore Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
Makefile Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
go.mod Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
go.sum Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
sqitch.conf Add empty Sqitch configuration anq plan files 2023-07-20 23:43:23 +02:00
sqitch.plan Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00