View more context

 

Firesphere

A logged-in-users only page? Then... why not make it accessible to logged in users, or specific users only? A page that is only accessible if users have the correct link/data, e.g. to share a preview of a blogpost? Then the hashing method should work

alt

This package requires php 7.2 but your PHP version (7.2.9) does not satisfy that requirement.

jkersu

Anyone have experience streaming and downloading a PDF from an S3 bucket? For some reason, I can't open some downloaded pdfs in adobe or save it from the browser, but sometimes for certain files it works fine. The code I have currently to download it is:

  1. $filePath = $file->Path;
  2. $data = stream_get_contents($service->getFile($filePath)->readStream());
  3. header("Content-type: application/pdf");
  4. $fileTitle = 'test.pdf';
  5. header("Content-disposition: attachment;filename=." . $fileTitle);
  6. echo $data;
alt

does Silverstripe have any support for srcsets? (sry cat on keyboard)

Firesphere

Ehhhh, yeps, sure, it's frontend, so it works just fine with a URL call

alt

or would I have to build something like DO => has_one: Image_SourceSet => has_many: Image?

Firesphere

You could extend the Image class to provide the source set....