-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dvc push for http remote storage #3247
Comments
Hi @harold1505 ! Are you using http to access AWS s3 or something else? Or do you want to use pure http remote? |
It is neither AWS S3 nor a popular platform. It is a platform with Rest API in which files can be retrieved and restored via http. So I guess, I want a pure http remote. |
@harold1505 Got it 🙂 So the reason why it is not supported is simple: we just didn't get any requests for supporting it until now. 🙂 To implement it, we will need to implement |
It would be really nice if this feature is available. |
Seconded! I think there is some nuance in HTTP posts larger than 2 GB, but there is the Content-Range header, which allows you to split up the transfer into chunks, and I think a few other techniques. But it would be great to be able to write a POST endpoint to roll your own DVC remote backend. |
As discussed with Ivan, I'll be working on implementing this |
Just to clarify, the desired behavior for this is to have basic push support via making HTTP POST requests to @harold1505 can you give some details on what exactly the platform you are using expects in terms of PUT/POST requests for file uploads? The main reason I'm asking is that as far as I understand it, git's HTTP remote is read-only (like dvc) for "dumb" web servers. HTTP remote write/push is only supported for web servers that can talk git's "smart" protocol or WebDAV. |
@pmrowla Great question! Correct, http remote should support POST requests. HTTP-based protocols (like s3 btw), are handled separately in their own remotes, so if we will ever need to add WebDAV support, we will likely create a separate remote class for it.
I suppose you are trying to clarify if @harold1505 is trying to push to git HTTP server, but I just wanted to clarify that what we need to do here is support just generic HTTP servers that allow uploading through standard POST requests, without any special protocols on top. |
- uploaded files are sent as chunked encoding POST data Fixes iterative#3247
I wanted to upload and download data files over http. But, i came to know dvc only support
dvc fetch
anddvc pull
for http remotes. Why is it so? How to makedvc push
work for http remote? New to dvc, please help.The text was updated successfully, but these errors were encountered: