Coder Social home page Coder Social logo

Multiple images about bashknown HOT 9 CLOSED

cdn avatar cdn commented on August 17, 2024
Multiple images

from bashknown.

Comments (9)

mapkyca avatar mapkyca commented on August 17, 2024

That would be cool!

Should just be a matter of adding square brackets to "photos", and then sending multiple -Fs for each filename (i.e. iterating through the remaining bash vars and treating them as files).

See https://medium.com/@petehouston/upload-files-with-curl-93064dcccc76

Not sure when I'll get to this though given everything I've got on atm, but PRs most welcome if you get impatient!

from bashknown.

cdn avatar cdn commented on August 17, 2024

Is there any reason that one image (PNG) seemingly gets deleted in the course of being processed?

photo.sh slightly hacked for [], and appropriate MIME…

from bashknown.

cdn avatar cdn commented on August 17, 2024

[] weren’t appreciated; helps if web server user/group own Uploads. #toomanywebroots

from bashknown.

cdn avatar cdn commented on August 17, 2024

Pull request #5 should do it, provided no one puts spaces in their image names.
Does break compatibility with 0.9.9.

from bashknown.

mapkyca avatar mapkyca commented on August 17, 2024

Spaces should be handled by putting quotes around the name, or escaping with , but ymmv!

Thanks for the PRs, and don't worry, I'm not overly fussed about backwards compatibility if it prevents moving forward. Besides, the official 0.9.9, is almost a year old at this point!

from bashknown.

cdn avatar cdn commented on August 17, 2024

I have my main blog on 0.9.9 with an sqlite3 datastore, it tends to be twitchy when I try to upgrade the php side of Known.

Can I part–migrate code, like IdnoPlugins/Photo, and get the functionality?

from bashknown.

mapkyca avatar mapkyca commented on August 17, 2024

You mean upgrade the plugin without upgrading core..?

If so, that's yes with an if :)

Basically it depends on how old your core build is and whether the plugin depends on functionality that isn't present in your build. YMMV.

Sqlite back end is less travelled than mongo or mysql, so that probably goes to explain some of the twitchyness. Bug reports / PRs welcome to try and iron out some of those glitches!

from bashknown.

cdn avatar cdn commented on August 17, 2024

More to port over: "Call to undefined method Idno\Core\Language::_()"

from bashknown.

cdn avatar cdn commented on August 17, 2024

At a minimum, Idno/Core/Language.php and Idno/Core/Input.php to accompany the files of the Photo plug–in.

from bashknown.

Related Issues (3)

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.