it seems plup_field_attach_presave doesn't always do what it's supposed to
it works for admin user, but regular user gets broken images/ filepaths like:
http://www.site.com/system/temporary/styles/page-thumbnail/temporary/p16...

When you edit the content type and resave, you get a correct path:
http://www.site.com/sites/default/files/styles/page-thumbnail/public/fot...

Comments

Anonymous’s picture

Status: Active » Closed (works as designed)

Images are uploaded into tmp folder and during form submit they are moved to proper location.

rv0’s picture

Status: Closed (works as designed) » Active

I know that.
Please re-read the issue.
The problem is that it doesn't work on my site for some roles
It works fine with admin

I need to edit, than resave for moving them to the proper location.

Anonymous’s picture

I think the key information here is the last part of the title: '(only with some users)'. Either it does work or it does not.