Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct an error in image upload

  • Loading branch information...
commit 748a6155d1df339af900ef4a81ee32ac8f233f07 1 parent 2c5807a
@espern espern authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 controllers/
5 controllers/
@@ -88,11 +88,12 @@ def nicedit_image_upload():
Controller to upload images with nicedit
from gluon.contrib.simplejson import dumps
+ from os import mkdir
page_id = request.args(0)
pathname = path.join(request.folder,'static','images', 'pages_content', page_id)
if not path.exists(pathname):
- os.mkdir(pathname)
+ mkdir(pathname)
pathfilename = path.join(pathname, request.vars.image.filename)
dest_file = open(pathfilename, 'wb')
Please sign in to comment.
Something went wrong with that request. Please try again.