What's the deal with Deno? We talk with a major contributor to find out. Listen now.

Hot answers tagged

1

I ended up using an event to accomplish this: use yii\base\Event; use craft\elements\Asset; use craft\events\AssetEvent; Event::on(Asset::class, Asset::EVENT_BEFORE_HANDLE_FILE, function (AssetEvent $event) { $asset = $event->sender; // This does not work because it doesn't set the `uploaderId` property on the asset // $asset->setUploader(...


1

Did some more tests. In my finder I have two files: 1.jpg 2.jpg When I upload these files, 1.jpg is uploaded first and 2.jpg second. In the control panel 2.jpg is the latest uploaded file and therefore the first visible asset. This clarifies the reversed order. A little trick when uploading multiple files from the finder and keeping the same order, is to ...


1

1) why? When you upload an image to Craft, the image is automatically “cleansed” using the same basic process that Craft uses to create image transforms. That happens to ensure that there are no malicious scripts hidden in the images, and it’s not something you can disable. 2) why is this not spelled out clearly in the documentation? Good point... we ...


Only top voted, non community-wiki answers of a minimum length are eligible