Giter Site home page Giter Site logo

Comments (13)

frankdejonge avatar frankdejonge commented on July 19, 2024 1

Corrected that.

from flysystem-rackspace.

frankdejonge avatar frankdejonge commented on July 19, 2024

@PatrickRose this should probably be handled within the adapter.

from flysystem-rackspace.

frankdejonge avatar frankdejonge commented on July 19, 2024

@PatrickRose which kind of url encoding do they require here? urlencode or rawurlencode? Do you have the link to the docs?

from flysystem-rackspace.

PatrickRose avatar PatrickRose commented on July 19, 2024

I'm using rawurlencode (though I can't remember why offhand) Docs have a notice here

from flysystem-rackspace.

frankdejonge avatar frankdejonge commented on July 19, 2024

@PatrickRose the docs say we should be using urlencode, I'll use that for all the segments, commit incoming.

from flysystem-rackspace.

PatrickRose avatar PatrickRose commented on July 19, 2024

Ahh, I remember why. Guzzle under the hood replaces ' ' with '%20'. We spotted this after we'd been using it for a while so we needed to keep the filenames the same. Would it be possible to use rawurlencode?

from flysystem-rackspace.

frankdejonge avatar frankdejonge commented on July 19, 2024

@PatrickRose does it matter that it does it? because urlencode replaces it with + so Guzzle can't replace it anymore.

from flysystem-rackspace.

PatrickRose avatar PatrickRose commented on July 19, 2024

It's a definite BC break, because previously $filesystem->exists('some file') would return true, and with urlencode it wouldn't.

from flysystem-rackspace.

frankdejonge avatar frankdejonge commented on July 19, 2024

ah, so it actually SHOULD be rawurlencode.

from flysystem-rackspace.

PatrickRose avatar PatrickRose commented on July 19, 2024

I think there's a minor BC break as part of this, so not sure how you want to handle it (I believe it's cases like $filesystem->put('some#file') actually wrote to 'some')

from flysystem-rackspace.

frankdejonge avatar frankdejonge commented on July 19, 2024

@PatrickRose ~_^

from flysystem-rackspace.

PatrickRose avatar PatrickRose commented on July 19, 2024

Sorry <3

I think it's okay - it's rare that people have those in their file names, which was something I had to deal with because users.

from flysystem-rackspace.

frankdejonge avatar frankdejonge commented on July 19, 2024

:neckbeard:

from flysystem-rackspace.

Related Issues (19)

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.