Trying to uplaod files from Unix Host to using curl script


Can anyone help me in correcting the below mentioned code:

curl --verbose --verbose --form myfile=@upload08102010.txt --form submit=Upload --user username:password --proxy

While running the above code, I am able to login to the server, but not able to Upload the file.

Can anyone please help me in the above issue.

Please find the message after running the script:

<style>input {display: block; margin-top: 1em;}</style>
<div style="width: 650px; margin: 2em auto; padding: 2em; border: 1px solid #ccc">
<h1>Upload a file</h1>
<p>Uploaded files must be smaller than 2GB. Please compress or
split files larger than 2GB. For specific instructions, please see
<a href="">
How to Transfer Large Files to Atlassian.</a></p>
<form action="upload_handler" method="POST" enctype="multipart/form-data">
<input type="file" name="myfile">
<input type="submit" name="submit" value="Upload">
No files have been uploaded to this account.
<div id="footer">


Pushpkant Garg

3 answers

Did you try it without the proxy?

I tried it with proxy....

try without the proxy

If I try without Proxy.... It will not allow me to login to the server...


i assume the file you wanna upload is smaller than 2GB right?

Yes... First I want to test the script.. If it is working fine then i will use it for bulk upload

Confluence is apparently a Struts app which is where you usually get the *.action?stuff=otherstuff etc. etc. in the URL. The trick is probably to find the right action to call.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

795 views 2 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you