Ask Your Question
1

File size limitations for uploading into DATA folder

asked 12 years ago

azerbajdzan gravatar image

I wanted to upload a file into DATA folder in Sage, but got the following error: Bad Request Maximum length of 10485760 bytes exceeded.

I guess there is a limitation 10MB on the size of a file. How can I change this limitation?

Preview: (hide)

Comments

I have used numpy's genfromtxt command to import data in to sage and I have imported a file larger than 5GB. Is there a reason why you are trying to put it in the data folder rather than import using numpy?

Shashank gravatar imageShashank ( 12 years ago )

I use Sage in Windows with Oracle VM VirtualBox. So I guess I can not simply access files in my local disk. I have first to upload files to DATA directory and then access file like this: f=open(DATA+'f.txt'); But if f.txt is bigger than 10MB I cannot upload it because I get the above error. If file is smaller than 10MB it works without any trouble.

azerbajdzan gravatar imageazerbajdzan ( 12 years ago )

2 Answers

Sort by » oldest newest most voted
0

answered 12 years ago

azerbajdzan gravatar image

Is there anybody who runs Sage Notebook in Windows using Oracle VM VirtualBox?

Preview: (hide)
link
0

answered 12 years ago

Jason Grout gravatar image

The limit is almost certainly a limitation of the webserver serving the notebook. If you are using twisted (i.e., the server Sage comes with), it may be a manifestation of a limitation of twisted: http://twistedmatrix.com/trac/ticket/... may be relevant. In any case, using something like nginx/uwsgi or apache to serv the Sage notebook may make it easier to adjust this limit.

Preview: (hide)
link

Comments

I have two options to upload file to DATA folder. 1. "Browse your computer to select a file to upload:" 2. "Or enter the URL of a file on the web:". The method 2, i.e. uploading from the web works without limitation but if I want to upload a local file using method 1 then there is that limit 10MB. So it must be an error in Sage, or if not then it must be possible to change the limit, but I do not know how.

azerbajdzan gravatar imageazerbajdzan ( 12 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 12 years ago

Seen: 562 times

Last updated: Oct 27 '12