 fs = require("fs")
 request = require("request")
 settings = require("settings-sharelatex")
+
+oneMinInMs = 60 * 1000
+fiveMinsInMs = oneMinInMs * 5
 
 module.exports =
 

		opts =
			method : "delete"
			uri: @_buildUrl(project_id, file_id)
		request opts, (err, response)->
			if err?
				logger.err err:err, project_id:project_id, file_id:file_id, "something went wrong deleting file from filestore"

		opts =
			method : "get"
			uri: "#{@_buildUrl(project_id, file_id)}#{queryString}"
			timeout:fiveMinsInMs
		readStream = request(opts)
		callback(null, readStream)

