Comments (9)
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.
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.
[] weren’t appreciated; helps if web server user/group own Uploads. #toomanywebroots
from bashknown.
Pull request #5 should do it, provided no one puts spaces in their image names.
Does break compatibility with 0.9.9.
from bashknown.
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.
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.
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.
More to port over: "Call to undefined method Idno\Core\Language::_()"
from bashknown.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bashknown.