Code Monkey home page Code Monkey logo

Comments (4)

kurin avatar kurin commented on August 22, 2024

Hi Paweł, thanks for opening a ticket. So that I'm clear, the scenario is that a modification to the contents of B2 could be made that is not identifiable in blazer? I'm not against exposing base.File.id but I feel like this is something that could be handled better by e.g. relisting unfinished files.

I'd like to see a code snippit that benefits from this, if possible? Thanks.

from blazer.

ppolewicz avatar ppolewicz commented on August 22, 2024

listing unfinished files is not free: it's a "C" transaction, limited to 2500 free calls per day, so I'd rather avoid a double call

from blazer.

ppolewicz avatar ppolewicz commented on August 22, 2024

If we consider a http server, it could serve something like this:

GET /listUnfinishedFiles?bucketId=abcdef

Which could return a list of objects, in json or something.

But then how should the request for cancelling a large fine upload look like?

POST /cancelLargeFileUpload
bucketId=abcdef&fileId=ac4ef79a16d38b4c2d80

Seems like a natural solution. Since B2 allows multiple large file uploads of the same filename to exist, providing a functionality of cancelling user-selected large file upload session would be very messy without the fileId.

from blazer.

mzukowski-reef avatar mzukowski-reef commented on August 22, 2024

@kurin you asked for snippet that benefits from this change - here is WIP commit in minio/minio to switch from their fork (minio/blazer) to this repo - mzukowski-reef/minio@c455ad3 - you can see there changes required in minio code to support changes in code commited in PR #65 as well as how kurin/blazer/base is used in minio code

from blazer.

Related Issues (20)

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.