Commit 9d4d0250 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed upload curl commands.

parent e351485d
......@@ -353,8 +353,8 @@ class UploadPage extends React.Component {
\`\`\`
### Form data vs. streaming
NOMAD accepts stream data (\`-T <local_file>\`) (like in the
examples above) or multi-part form data (\`-X PUT -f file=@<local_file>\`):
NOMAD accepts stream data \`-T <local_file>\` (like in the
examples above) or multi-part form data \`-X PUT -F file=@<local_file>\`:
\`\`\`
${uploadCommand.upload_command_form}
\`\`\`
......@@ -363,8 +363,8 @@ class UploadPage extends React.Component {
more information (e.g. the file name) to our servers (see below).
#### Upload names
With multi-part form data (\`-X PUT -f file=@<local_file>\`), your upload will
be named after the file by default. With stream data (\`-T <local_file>\`)
With multi-part form data \`-X PUT -F file=@<local_file>\`, your upload will
be named after the file by default. With stream data \`-T <local_file>\`
there will be no default name. To set a custom name, you can use the URL
parameter \`name\`:
\`\`\`
......
......@@ -615,10 +615,10 @@ class UploadCommandResource(Resource):
upload_command_form = 'curl "%s" -X PUT -F file=@<local_file>' % upload_url
upload_command_with_name = 'curl "%s" -X PUT -T <local_file>' % upload_url_with_name
upload_command_with_name = 'curl "%s" -T <local_file>' % upload_url_with_name
upload_progress_command = upload_command + ' | xargs echo'
upload_tar_command = 'tar -cf - <local_folder> | curl -# -H "%s" -T - | xargs echo' % upload_url
upload_tar_command = 'tar -cf - <local_folder> | curl "%s" -T - | xargs echo' % upload_url
return dict(
upload_url=upload_url,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment