def save
        unless saved? || @contents.nil? || @name.nil?
          response = client.create_file(@name, @contents, @mime_type)
          unless response.error?
            result = response.result
            @name = result[FIELD_NAME] || File.basename(result[FIELD_URL])
            @url = result[FIELD_URL]
          end
        end
        saved?
      end
def save
        unless saved? || @contents.nil? || @name.nil?
          response = client.create_file(@name, @contents, @mime_type)
          unless response.error?
            result = response.result
            @name = result[FIELD_NAME] || File.basename(result[FIELD_URL])
            @url = result[FIELD_URL]
          end
        end
        saved?
      end
Save the file by uploading it to Parse and creating a file pointer.
 @return [Boolean] true if successfully uploaded and saved.