camper/pkg
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
..
app Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
auth Add the form to update company’s tax details 2023-08-15 22:35:21 +02:00
campsite Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
carousel Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
company Add the form to update company’s tax details 2023-08-15 22:35:21 +02:00
database Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
form Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
hex Add cover media to campsite types 2023-09-10 03:04:18 +02:00
home Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
http Add the language switched to the public layout 2023-08-06 05:53:52 +02:00
locale Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
media Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
season Add seasons’ relation, functions, and admin section 2023-08-16 20:15:57 +02:00
services Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
template Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
uuid Add cover media to campsite types 2023-09-10 03:04:18 +02:00