David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said over 5 years ago on Rails API App - Authentication with JSON Web Tokens :
   Yes, it would probably be the 24.hours.from_now set for the expiration. Personally, I don't think that the JWT token should be a long living one. If the server returns that the token is expired, the consuming app should have a mechanism to validate a new one without user interaction.

David Kimura PRO said over 5 years ago on StimulusJS, Active Storage and DropzoneJS :
  Great question. Since the stimulus controller is creating a hidden element, you would need to remove that hidden element with something like this. I would console log the file to see what parameters are available and then remove the hidden element based on those parameters.

dropzone.on("removedfile", file => {
 
});

David Kimura PRO said over 5 years ago on StimulusJS, Active Storage and DropzoneJS :
  Can you post an example of the parameters that are getting posted to the controller?

Also, do you have 

has_many_attached :evidences

In your event model?

David Kimura PRO said over 5 years ago on StimulusJS, Active Storage and DropzoneJS :
When you drag the images on the page, did you verify that the direct upload is working? You should be able to check the console to see if Active Storage is creating the blobs. Once it creates the blob, the stimulus controller should create the hidden elements. Do an inspect on the browser to see what the elements look like. There does seem to be something off as the blob's signed_id should be getting set as the value.

David Kimura PRO said over 5 years ago on Deferred Content Loading :
Hey    . You're correct. This is the episode I was referring to.