I added "canvas" to the file directory field but the folder doesnt get created in files.

All the canvases are being created in files/ instead of files/canvas/

Comments

tinny’s picture

Also, when trying to remove a canvas field drawing from a node or when trying to delete the node itself i get the error Invalid Data URL

tinny’s picture

More info: the name you put in the file directory field is the name given to the canvas files.

So if you put 'canvasfolder' then the canvas files will be
files/canvasfolder
files/canvasfolder_0
files/canvasfolder_1
etc

instead of
files/canvasfolder/canvas
files/canvasfolder/canvas_0
files/canvasfolder/canvas_1
etc

tinny’s picture

If the file directory field is left blank then it works properly ie. canvas images get saved as 1334016537.png

Leaving the field blank also fixes the Invalid Data URL error when trying to delete a canvas drawing/node.