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: 1. Regardless of which file type is used (doc, txt, pdf) the resultant uploaded file ALWAYS ends with a "." (dot). 2. 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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 7 feb, 16:12, Ari King <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> 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: > > 1. Regardless of which file type is used (doc, txt, pdf) the resultant > uploaded file ALWAYS ends with a "." (dot). > > 2. 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 > > -- > Posted viahttp://www.ruby-forum.com/.I was checking the project page https://github.com/thoughtbot/paperclip and it says paperclip is failing... maybe that''s the reason -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ahmy Yulrizka
2012-Feb-08 02:04 UTC
Re: Re: File Type Extensions Missing in Uploaded Files
I think you should debug the normalize_file_name method and check the extension variable Ahmy Yulrizka On Wed, Feb 8, 2012 at 4:36 AM, Angelo Cordova <acordinz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On 7 feb, 16:12, Ari King <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > 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: > > > > 1. Regardless of which file type is used (doc, txt, pdf) the resultant > > uploaded file ALWAYS ends with a "." (dot). > > > > 2. 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 > > > > -- > > Posted viahttp://www.ruby-forum.com/. > > I was checking the project page https://github.com/thoughtbot/paperclip > and it says paperclip is failing... maybe that''s the reason > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.