Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue when delete a file (accented name or space) uploaded via blueprint file #833

Closed
dimitrilongo opened this issue Oct 21, 2016 · 3 comments

Comments

@dimitrilongo
Copy link

when upload a file with accented characters or space and delete it within theme config, the file is deleted (normal behavior) but in the theme config it not deleted this instead : el_favicon_single: { }
and if you save your theme config again this happen
capture d ecran 2016-10-21 a 13 37 11

404 because the file was deleted, but in the theme config the path remains
Hope you can reproduce it
my blueprint :

            el_favicon_single:
              type: file
              label: ''
              multiple: true
              destination: 'user/themes/MYTHEME/images/'
              showuploaded: true
              showuploadedpreview: true
              accept:
                  - image/*

tested with same image but remove accented in the file name everything was ok

Thanks

@flaviocopes
Copy link
Contributor

Interesting, I replicated it using a page blueprint.

Uploaded a file and it's saved as

el_favicon_single:
    user/ààààà.png:
        name: ààààà.png
        type: image/png
        size: 33585
        path: user/ààààà.png

which is correct, but while the file is removed from the filesystem, it's never deleted from the page header.

@flaviocopes
Copy link
Contributor

Testing this, the problem is not that it's not deleted from the yaml: it is, but when then you save the page/config, it's added back.

@dimitrilongo
Copy link
Author

dimitrilongo commented Oct 21, 2016

yes that s it , sorry for my English I said

but in the theme config the path remains

this is what I meant
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants