grailsamazon-s3grails-pluginjets3t

How do I get "happy" names using Amazon S3 plugin for Grails (via Jets3t)


References:

By "happy" names, I mean the real name of the file I'm uploading... for instance, if I'm putting a file called "foo.png" I'd expect the url to the file to be /foo.png. Currently, I'm just getting what appears to be a GUID (with no file extension) for the file name.

Any ideas?


Solution

  • You can set the key field on the S3Asset object to achieve what you need.

    I'll update the doco page with more information on this.