You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spaces in a filename screwed up file creation while trying to upload a sketch file.
Here's my console output:
LayerVault.client.create_file("tims-org", "This is smee", "./", "Untitled copy.sketch", {:local_file_path => "./Untitled copy.sketch.tar.gz", :content_type => "application/tar-x"})
URI::InvalidURIError: bad URI(is not URI?): https://api.layervault.com/api/v1/tims-org/This%20is%20smee/Untitled%20copy.sketch/upload_complete?md5=47371919f8bdb6e35df40d8744db818a&remote_url=https://s3.amazonaws.com/omnivore-scratch/8329/1391639479.7579765/Untitled copy.sketch&bucket=omnivore-scratch&key=8329%2F1391639479.7579765%2FUntitled+copy.sketch&etag=%2247371919f8bdb6e35df40d8744db818a%22
from /Users/tim/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/uri/common.rb:176:in `split'
from /Users/tim/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/uri/common.rb:211:in `parse'
from /Users/tim/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/uri/common.rb:747:in `parse'
from /Users/tim/.rvm/gems/ruby-2.0.0-p195/gems/layervault-0.1.1/lib/layervault/client/files.rb:44:in `create_file'
from (irb):7
from /Users/tim/.rvm/rubies/ruby-2.0.0-p195/bin/irb:16:in `<main>'
If I renamed both the resulting file to "sketchfile.sketch", and the file on disk to "sketchfile.tar.gz", everything worked like magic:
Spaces in a filename screwed up file creation while trying to upload a sketch file.
Here's my console output:
If I renamed both the resulting file to "sketchfile.sketch", and the file on disk to "sketchfile.tar.gz", everything worked like magic:
The text was updated successfully, but these errors were encountered: