We just started using Slingshot on a project, partly because the way it works looks much more efficient to passing uploads through the server (which loads the server).
It hasn’t been touched for 6 years, which at first seems like a reason not to use it, but there appear to be people that are using it successfully. So I persevered, and got it to work.
The doco shows how to set up CORS permissions, but it does not work (perhaps outdated). I found a way to fix it, and would like to update the documentation.
I may also want to make other changes (like add some proper tests)
What I am saying is that I might be putting my hand up to maintain it. How would I do that?
First try to contact the original creator/maintainer to see if you can get the needed access to become the new maintainer. Best if you can get more people to help you with it.
Also check out MCP, that is the second option to establish a longer solution if the first one isn’t possible or sufficient.
And from the UI, the progress function will get called with a percentage change each time it changes. When this function gets called, I set the state of the progress react component:
progress: value => {
console.log(`current value: ${value}`);
if (!isNaN(value)) {
this.setState({
progress: value * 100
});
}
}
That depends on the use-case. If the functionality has a limited scope, like a component or a tree of components, I would always prefer withTracker(), so tracking will stop once the component(s) are unmounted.
If you want do track changes at a “central” location in your app, e.g. to check the connection status, Tracker.autorun() comes in handy.
Last time I tried, the cors has been a problem for me too.
I think several among us would be glad to loearn how you solved it
This package is good, though I might get some useful update to make the progress / resume / pause thing a little bit easier and straightforward, mainly when not using blaze
@waldgeist has provided help above, which is how I solved it too.
And yes, I am planning on updating the docs and providing some examples to make it easier to get started. I have thought about using axios instead of the raw XMLHttpRequest, although that starts introducing module dependencies. Feel free to offer opinions on that
@storyteller Garik has come back to me and said we can do a transfer. We will meet at the weekend. The old organisation doesn’t exist any more. We can either move it to Back2bikes (A bicycle recycling NFP that I run), or we can go to MCP - what do you think?
I think it should be. It seems it has a significant scope of work to run on volunteer/donation basis, at least to me. But with shared funding, it will need some basic governance as well.