I’m using paperclip version 2.5.0 to upload text-like documents (word,
text, pdf). While uploads do take place there are two show-stopping
issues:
-
Regardless of which file type is used (doc, txt, pdf) the resultant
uploaded file ALWAYS ends with a “.” (dot). -
The “path” property returns the path and filename WITHOUT the dot, so
the file can not be accessed.
I’ve pasted the model that contains the attachment code at:
http://pastebin.com/rhCJ5SKM
Does anyone know what could be wrong? Thanks.
-Ari