RailsCasts Pro episodes are now free!

Learn more or hide this

Thomas's Profile

GitHub User: thomasjoyce

Site: nope

Comments by Thomas

Avatar

Hi,
just wondering if someone might be able to answer this?

1) how to prevent certain file type from being uploaded to AWS S3?
For example, i don't want user to upload video file at all, how to prevent it?

2) Is there a way in AWS S3 upload script to stop the files upload from triggering if each user is limit to 5 files upload per user?

Thanks for the help :- )

Avatar

Any idea how to have it so that the controller is not being seen in the url?

For example, i got it working with this:
https://www.domain.com/users/jimmy-hendricks

I like it to be this instead:
https://www.domain.com/jimmy-hendricks

Just like facebook/twitter did in theirs.
Thanks