paperclipped icon indicating copy to clipboard operation
paperclipped copied to clipboard

problem with uploading ico files as asset

Open MichaelTorfs opened this issue 15 years ago • 2 comments

Hi,

I'm not a coder, so excuse me if I sound a but untechnical.

We have 2 sites running, one with the paperclipped extension checked out at April 2nd, the other one cheched out at May 17th. The last one has a bug (or I do something wrong).

I create 2 assets. favicon.png and favicon.ico, all settings are default, title I put the same as the filename, including extension.

In my layout I have the following in my head part: <link rel="Shortcut Icon" href=<r:assets:url title="favicon.ico" /> type="image/x-icon" /> <link rel="icon" href=<r:assets:url title="favicon.png" /> type="image/png" />

It is resolved in the page source on the website as follows (checkout of May 17th) with the bug: link type="image/x-icon" href="/images/assets/doc_original.png" rel="Shortcut Icon"/ link type="image/png" href="/assets/5/favicon.png" rel="icon"/

It is resolved in the page source on the website as follows (checkout of April 2nd): link type="image/x-icon" href="/assets/1/favicon.ico" rel="Shortcut Icon"/ link type="image/png" href="/assets/2/favicon.png" rel="icon"/

I think something goes wrong in in the assets.rb model, line 90 (BTW our setting is default: original)

MichaelTorfs avatar May 27 '09 10:05 MichaelTorfs

Can you check if the file gets saved on the server? Also what browser are you using?

bastilian avatar May 27 '09 11:05 bastilian

Hi, sorry, we reinstalled radiant with a copy of the April 2nd paperclipped version we still had. I am using firefox 3.0.10. If really needed I can try to install locally. Can you reproduce it? Or did not try yet?

MichaelTorfs avatar May 27 '09 12:05 MichaelTorfs