Comments (2)
@ryoung @tomaskubala Thank you for letting us know and for this PR. I've just merged it.
from filestack-ruby.
We have the same problem.
tempfile = Tempfile.new('test.txt')
uploader = FilestackClient.new(Rails.configuration.filestack_rails.api_key)
uploader.upload(filepath: tempfile.path, options: {})
# => NoMethodError (undefined method `content_type' for nil:NilClass)
We made a workaround by defining mimetype
in options
with the value FilestackConfig::DEFAULT_UPLOAD_MIMETYPE
as a temporary solution.
uploader.upload(filepath: tempfile.path, options: { mimetype: FilestackConfig::DEFAULT_UPLOAD_MIMETYPE })
But probably would be better to keep the behaviour from the previous version.
from filestack-ruby.
Related Issues (20)
- Filestack scanning viruses HOT 6
- How to get Exif data from an image already uploaded? HOT 2
- Question: Support bucket and path options in upload HOT 1
- Support setting mimetype in uploads HOT 2
- Uploading from local file always returns handle as nil HOT 5
- Missing 'cache' Transformation HOT 3
- Gemspec is out of date and too restrictive HOT 1
- Reading data from IO object HOT 4
- docs provider error: conversion was taking too long (idx 0) HOT 1
- Json Parse Error HOT 2
- bootsnap, rails test HOT 1
- Yanked mimemagic versions and GPL2 HOT 6
- Migrate to marcel instead of mimemagic HOT 4
- mini_mime version specificity too tight
- undefined method `encode' for URI:Module in Ruby 3 HOT 1
- RuntimeError invalid params: size
- Typphoeus all request return_code=bad_content_encoding
- Get GitHub actions running tests against Ruby 3.x
- RuntimeError: invalid security policy path with uploading url HOT 1
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-ruby.