Giter Club home page Giter Club logo

Comments (4)

bkwi avatar bkwi commented on June 5, 2024 1

we could try and add an additional attribute to Filelink class that would be populated only when object was created as a result of a file upload:

flink = client.upload(...)
flink.upload_response  # would contain all the data that was returned
# but
flink = Filelink(<HANDLE>)
flink.upload_response # would be None

from filestack-python.

bkwi avatar bkwi commented on June 5, 2024 1

hi @heprotecbuthealsoattac

filestack-python==3.4.0 has just been released. It contains changes described in my previous comment. Sorry it took so long.

from filestack-python.

bkwi avatar bkwi commented on June 5, 2024

Hi @heprotecbuthealsoattac,

First of all, I'm sorry for such a late response.
Which metadata items do you need to re-query for most often? And how often would you say our api fails?
We are currently making some changes to our metadata API and I hope we'll be able to address reliability issues.

from filestack-python.

heprotecbuthealsoattac avatar heprotecbuthealsoattac commented on June 5, 2024

@bkwi I need things like: 'url', 'container', 'filename', 'key', 'size'. All this data is availble to the python module after just uploading the file but is discarded later on which is a problem because I need to re-query the metadata api to get it back, however it did fail on me rather often. I was setting up a monitoring system that was uploading the files via python to 'emulate' user's interaction with filestack and had to resort to this kind of 'hack':

from filestack.uploads.multipart import multipart_upload

CLIENT = Client(FS_API_KEY)
metadata = multipart_upload(
        CLIENT.apikey,
        FILE_PATH,
        None,
        CLIENT.storage,
        params={
            'filename': filename,
            'path': path,
            'location': 's3',
            'access': 'private'
        },
        security=CLIENT.security
    )

    r = do_stuff_with_the_metadata(metadata'])

from filestack-python.

Related Issues (13)

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.