lib/dropbox-api/client/files.rb
# Download only the EXIF part, only the first 64kb or 128kb of the image files
Download only the EXIF part, only the first 64kb or 128kb of the image files
Download only the EXIF part only the first 64kb or 128kb of the image files
def download_headers(file, options = {})
          if file.mime_type.include?("image")
            root     = options.delete(:root) || Dropbox::API::Config.mode
            path     = Dropbox::API::Util.escape(file.path)
            url      = ['', "files", root, path].compact.join('/')
            connection.get_raw(:content, url, {}, {
              "Range" => "bytes=131072"
            })
          end
        end
def download_headers ( file , options = { } ) if file . mime_type . include? ( "image" ) root = options . delete ( :root ) || Dropbox :: API :: Config . mode path = Dropbox :: API :: Util . escape ( file . path ) url = [ '' , "files" , root , path ] . compact . join ( '/' ) connection . get_raw ( :content , url , { } , { "Range" => "bytes=131072" } ) end end
Download only the EXIF part, only the first 64kb or 128kb of the image files
Download only the EXIF part only the first 64kb or 128kb of the image files
# Check if file type is image
file
options