
Guy Aloni
@guy-aloni
Zaragoza, Spain
- Member Since
- Jun 4, 2024
- Lessons Completed
- 8
- Comments Contributed
- 8
- Hours Watched
- 1.7
Recent Activity
Here's what @guy-aloni has been up to this past year
-
Anniversary Thanks for being an Acocasts member for 1 year
-
Completed lesson How To Create Your Own Global Helpers in AdonisJS
-
Replied to Thanks for watching, Guy! For that, I'd recommend using Drive...
Thanks. I tried it but got problems with relative and absolute path, and could not manage to have the same code working with both
fs
ands3
depending on the environment argumentDRIVE_DISK
. I understand that basically the same code should work for both, I will give it another try :-) -
Commented on post Uploading and Displaying User Avatars
Thanks Tom for the tutorial!
I am trying to implement upload action that will work in localhost with file-system, and in production with s3. Can you please tell how to do it with minimum code? I guess that usingDRIVE_DISK
in.env
file should be enough, but I do not manage to have the same code working for both s3 and local file system. -
Upvoted comment Can you please tell me how to upload image in s3 in adonis js...
-
Upvoted comment Anytime!! Happy to hear you got it all working!
-
Replied to Hi Guy! Yeah, the VineJS date validation will return back a ...
Thanks Tom!
In my case, just if someone has the same problem, I had to add also an ISO format:startDate: vine.date({ formats: { utc: true } }).transform((date) => DateTime.fromJSDate(date)),
-
Upvoted comment Hi Guy! Yeah, the VineJS date validation will return back a ...
-
Commented on post Validating Form Data with VineJS
Great tutorial, thanks!
How can I validate dates? I get an errorUncaught Exception: Invalid value for "Chapter.startDate". It must be an instance of "luxon.DateTime"
, looks like date should be cast inside the validator? -
Completed lesson Validating Form Data with VineJS
-
Completed lesson Defining Our Models
-
Completed lesson The Basics of CRUD