New answers tagged


The dateCreated column you're referring to is more of a minimum internal audit trail that Craft uses when a new row is inserted into the database (along with dateUpdated). Is sounds like you want something that references the original time the asset was created, which would be stored in the images EXIF/metadata. You could write a plugin that read that ...


For anyone interested, I figured out that I had to name the asset field as "assets-upload" in order for it to work. I found this out by inspecting the asset upload button in the CP. Here is my working form code: <form method='post' accept-charset='UTF-8' enctype='multipart/form-data'> {{ csrfInput() }} {{ ...


There is indeed an assets/save-asset controller. You will find it in vendor/craftcms/cms/src/controllers/AssetsController.php, the actionSaveAsset() function.


This answer is a bit self-serving, but I'm the author of the Digital Download plugin. It allows you to control how and when assets are downloaded. You can restrict downloads by a time period, maximum number of downloads, or tie them to a logged-in user.

Top 50 recent answers are included