Comments (4)
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.
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.
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.
@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)
- AudioVisual should have uuid HOT 7
- filelink.get_metadata returns response object when error HOT 3
- simplejson.scanner.JSONDecodeError on response HOT 1
- "Parameters are inalid" error HOT 9
- Uploading multiple files is not supported HOT 1
- Add Auto Image Conversion task HOT 1
- Add Minify CSS task HOT 2
- Basic examples have broken imports HOT 1
- Limitation on "requests" version
- Support configuring timeouts on Filestack client
- endpoint missing in documentations HOT 1
- Unable to upload files to filestack using security policy and app secret
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 filestack-python.