lib/filestack/utils/utils.rb
# Loop and run chunks for each offset
#
# @param [Array]              jobs            A list of file parts
# @param [IntelligentState]   state           An IntelligentState object
# @param [String]             apikey          Filestack API key
# @param [String]             filename        Name of incoming file
# @param [String]             filepath        Local path to the file
# @param [Int]                filesize        Size of incoming file
# @param [Typhoeus::Response]  start_response  Response body from
#                                             multipart_start
#
# @return [Array]
Loop and run chunks for each offset
Loop and run chunks for each offset
def create_upload_job_chunks(jobs, state, apikey, filename, filepath, filesize, start_response)
    jobs.each { |job|
      job[:chunks] = chunk_job(
        job, state, apikey, filename, filepath, filesize, start_response
      )
    }
    jobs
  end
def create_upload_job_chunks ( jobs , state , apikey , filename , filepath , filesize , start_response ) jobs . each { | job | job [ :chunks ] = chunk_job ( job , state , apikey , filename , filepath , filesize , start_response ) } jobs end
Loop and run chunks for each offset
Loop and run chunks for each offset
None
Array
jobs
<not_specific>
state
<not_specific>
apikey
<not_specific>
filename
<not_specific>
filepath
<not_specific>
filesize
<not_specific>
start_response
<not_specific>
<not_specific>
start_response Response body from multipart_start
start_response Response body from multipart_start