Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Wout
    @wout
    I've opened an issue to document this: luckyframework/website#330
    Wout
    @wout
    The PR for multipart: true in form_for is waiting for approval: luckyframework/lucky#1200
    I'm now working on Avram to polish file uploads and I hop to get it finished this weekend.
    And I was also wondering, have you already done any work on implementing your Fastimage shard for the dimensions plugin? If not, I can take care of that as well if you want.
    Wout
    @wout
    Today I completed the majority of the work required for Avram to play more nicely with Shrine. You can see the WIP here: luckyframework/avram#396
    Hopefully we can ship this quickly. :)
    Igor Alexandrov
    @igor-alexandrov
    Hello
    I've been very busy last couple of days
    Will try to review everything starting from tomorrow
    Wout
    @wout
    No worries. It's not ready yet.
    Wout
    @wout
    So, I've finalized the PR: luckyframework/avram#404
    If that's merged, you'll be able to do this:
    class SaveImage < Image::SaveOperation
      param_key :image
    
      attribute asset : ImageUploader::Attachment
      attribute title : String
    end
    Given that ImageUploader::Attachment includes Avram::Uploadable.
    Wout
    @wout
    I'm now researching multi-file uploads.
    Igor Alexandrov
    @igor-alexandrov
    wow wow!
    great job, dude!
    Wout
    @wout
    Thanks :)
    Igor Alexandrov
    @igor-alexandrov
    I am still occupied with production work...
    Wout
    @wout
    No pressure. ;)
    Igor Alexandrov
    @igor-alexandrov
    we have a code freeze on Friday...
    so you know... everything is going not expected these days
    Wout
    @wout
    Sounds familiar...
    Igor Alexandrov
    @igor-alexandrov

    Given that ImageUploader::Attachment includes Avram::Uploadable.

    We will be able to reach this with a plugin

    Francisco Cordero
    @franciscoGPS
    image.png
    Hi guys. After adding shrine as a dependency, and running shards install, i'm having this error. Is anyone else having this or know how to solve it? Thanks in advance
    Sean Gregory
    @skinnyjames
    @franciscoGPS I got that too, I had to lock shrine at 0.6.4
    shrine:
    github: jetrockets/shrine.cr
    version: ~> 0.6.4
    hey all, is the metadata["filename"] option supposed to set the actual filename?
        uuid = UUID.random.to_s
        str = "#{uuid}#{extension}"
        # e5333b2f-d934-4b93-8ff2-c06b3f2d915b.jpg
        Shrine.upload(File.new(file.tempfile.path), "cache", metadata: { "filename" => str })
       # saves as b72e96c87dac868dcd7042a2d949cfd5.jpg