Ask Your Question
2

How to Change TMP Directory for Image Upload

asked 2013-06-03 03:10:04 -0600

anonymous user

Anonymous

updated 2013-06-10 14:33:59 -0600

smaffulli gravatar image

how can i change the tmp upload directory for the image upload in the openstack dashboard ? I checked all config files (dashboard,glance,apache), but i can not find the option.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
7

answered 2013-06-07 19:31:40 -0600

kspear gravatar image

Horizon uses the file upload support from Django, so the option you want is actually from Django:

FILE_UPLOAD_TEMP_DIR

The directory where uploaded files larger than FILE_UPLOAD_MAX_MEMORY_SIZE will be stored.

Defaults to your system’s standard temporary directory (i.e. /tmp on most Unix-like systems).

Put that in your Horizon local_settings.py.

You can find more info in the https://docs.djangoproject.com/en/1.5/topics/http/file-uploads/#changing-upload-handler-behavior (Django documentation).

edit flag offensive delete link more

Your Answer

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

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-06-03 03:10:04 -0600

Seen: 2,010 times

Last updated: Jun 10 '13