I've got the following setup...

Drupal: 7.10
Filefield_Paths: 7.x-1.0-beta1
File_Aliases: 7.x-1.0-beta1
Insert: 7.x-1.1
Filefield_Sources: 7.x-1.4
CKEditor: 7.x-1.6

I added an imagefield to the basic page content type with the following settings:

Filefield_Paths settings:
- File Path: images/pages
- File Name: [node:nid]-[file:ffp-name-only-original].[file:ffp-extension-original]

File_Aliases:
- File Alias: images/[file:ffp-name-only-original].[file:ffp-extension-original]

I then created a -new- page, adding one image (lcaillinihouse.jpg), and inserted it three times using three different styles. The insert produced the following:

<img src="http://tiger.d7/sites/default/files/styles/large/public/images/pages/19-lcaillinihouse.jpg" alt="" title="" class="image-large" />
<img src="http://tiger.d7/sites/default/files/styles/medium/public/images/pages/19-lcaillinihouse.jpg" alt="" title="" class="image-medium" />
<img src="http://tiger.d7/sites/default/files/styles/thumbnail/public/images/pages/19-lcaillinihouse.jpg" alt="" title="" class="image-thumbnail" />

After saving the node it looked right.

So I then edited the node and did an insert three more times. The insert produced the following:

<img src="http://styles/large/http/tiger.d7/images/lcaillinihouse.jpg" alt="" title="" class="image-large" />
<img src="http://styles/medium/http/tiger.d7/images/lcaillinihouse.jpg" alt="" title="" class="image-medium" />
<img src="http://styles/thumbnail/http/tiger.d7/images/lcaillinihouse.jpg" alt="" title="" class="image-thumbnail" />

As you can see the image URLs are incorrect. Looks like it's taking the styles path and then adding in the file_aliases.

Comments

caschbre’s picture

Ok, I did a little further testing.

I disabled and uninstalled the File_Aliases module and ran the same tests as above. Without the File_Aliases module it appears to work as expected.

I don't know if this is an Insert module issue or a File_Aliases issue though.

quicksketch’s picture

Status: Active » Closed (won't fix)

Insert uses the standard function file_create_url() to create URLs, so if File_Aliases is somehow modifying that then it would fall on that module to do the altering. I'm going to close this issue due to its age. If still interested or having the problem, I suggest reopening this into the File_Aliases issue queue.