Git Product home page Git Product logo

Comments (3)

AnthonyMDev avatar AnthonyMDev commented on July 24, 2024

Hmm that's odd. Just confirming, you are talking about the destinationPath for the upload having spaces or special characters in it.

It may just be that Amazon S3 does not support those characters in their file paths. If that is the case, the only thing I can do about it is to add a note on it to the documentation. I'll look into this and see if this is an Amazon thing or a problem with the library.

Thanks!

from amazons3requestmanager.

AnthonyMDev avatar AnthonyMDev commented on July 24, 2024

What special characters are you using specifically? Some special characters are supported, but not all it seems.

Object names:

The following character sets are generally safe for use in key names:

  • Alphanumeric characters [0-9a-zA-Z]
  • Special characters !, -, _, ., *, ', (, and )

Bucket names:

Bucket names must be a series of one or more labels. Adjacent labels are separated by a single period (.). Bucket names can contain lowercase letters, numbers, and hyphens. Each label must start and end with a lowercase letter or a number.

http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html
http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html

from amazons3requestmanager.

petraalm avatar petraalm commented on July 24, 2024

Foreign language characters e.g. šđčćž. I was able to make a workaround by using id instead of a filename in the destination path. However, I still dont understand why the problem happens. In the guidelines you posted it says using any UTF-8 character should be ok, which I believe is true because if I do the uploading to s3 on the server side (using paperclip) it works. Paperclip substitutes spaces with underscore tho, but foreign language characters get percent encoded.
Were you able to reproduce the issue?

from amazons3requestmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.