First time here? Check out the FAQ!
1

Cannot upload images in posts
 

Hi,

We're unable to upload images in posts either on Ask Fedora or on this instance. Can you please check what's happened? We didn't have this issue with 0.7.48 iirc. Here's a screenshot.

image description

(I'm uploading the images to my fedorapeople space for the time being)

Here's the Fedora infrastructure ticket: https://fedorahosted.org/fedora-infrastructure/ticket/4197

EDIT:

Found this in the logs:

/usr/lib/python2.6/site-packages/askbot/views/writers.py TIME: 2014-01-26 06:33:16,632 MSG: writers.py:upload:111 [Errno 13] Permission denied: '/etc/askbot/sites/ask/config/askbot'

The requested directory doesn't exist:

[root@ask01 askbot]# ls /etc/askbot/sites/ask/config/
django.wsgi   __init__.pyo  manage.py   settings.py           settings.py.mustache.setmustache  tinymce_sample_config.py   urls.py
__init__.py   local.pp      manage.pyc  settings.pyc          settings.pyo                      tinymce_sample_config.pyc  urls.pyc
__init__.pyc  local.te      manage.pyo  settings.py.mustache  settings.py.set                   tinymce_sample_config.pyo  urls.pyo
[root@ask01 askbot]#

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
FranciscoD's avatar
71
FranciscoD
asked 11 years ago, updated 11 years ago

Comments

see more comments

1 Answer

1

Looks like a simple settings.py issue. Adding this seems to fix it:

MEDIA_ROOT = '/var/lib/askbot/upfiles/ask/'

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
FranciscoD's avatar
71
FranciscoD
answered 11 years ago
link

Comments

see more comments