Closed (fixed)
Project:
File Framework
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2011 at 17:54 UTC
Updated:
12 Mar 2012 at 17:33 UTC
I had one problem with files name set with double quote characters.
Is there a way to clean up the file name when saving the file node?
Thanks
Comments
Comment #1
jvieille commented+1
Comment #2
jvieille commentedalso "/" makes problems: the downloaded file gets what is after the last "/"...
Any means to integrate with transliteration for example?
Thanks
Comment #3
jvieille commentedQuote -'-, double quotes -"- and slash -/- should be avoided apparently.
This is a major issue as it prevents file conversion. I set it as a "task", because it is something unfinished
There may be different option, i.e.
- make FF accept any character in the file name
- or transllitterate file names to get them FF friendly
Comment #4
johanneshahn commentedhi,
do u have this characters befor upload the file (as the filename on your desktop),
or just give the file node title this characters?
sorry cant reproduce
Comment #5
jvieille commentedThe problem is not with the uploaded file, but with the name given to the file node.
Once a file has been uploaded with those characters, letting FF adopt the file name and failing to convert, you can clean up rdf, rename the file and everything goes back to normal.
I would suggest looking at this module
http://drupal.org/project/transliteration
that does the trick (once integrated)
Comment #6
johanneshahn commentedTried to fix that in latest dev.
With a minimal filename convertion when
Download, Or use transliteration Module if installed
Goto Admin -> settings -> file
Comment #7
jvieille commentedThanks for working at this.
I was not successful with the feature:
- uploaded files titles are not converted
- downloaded files are not converted either,
I tried both FF setting and Transliteration
However, FF seems to work much better with fancy file names. I can now use any character in the title, and the conversions seem to succeed.
Comment #8
johanneshahn commentedhi jvieille,
i fixed that with uploaded files. this works with
file attachments. i do not tested it with cck fields.
for normal file upload this works only in background for
filenames, not for title.
downloading filenames works for me.
can u give me some more input whats going on when u download
a file. do u use the download link or something else?
thank you for review and testing!
Comment #9
jvieille commentedI tried again today, and it works when downloading files.
I don't know what happened during my tests, may be a cache problem.
I tried only with file nodes directly, not file attachment nor cck, so this
seems to apply.
However, I don't understand what you mean, as file names are actually node titles...
Comment #10
johanneshahn commentedhi,
if you create a new node of type file
then the title is auto set by javascript and
its not converted.
then you press save/upload your new node the process is.
-> take entered node title as is, because title can have any chars.
-> rename submitted filename/s ($_FILES) with transliteration before processing in ff
this is what i mean with "in background".
this is done via
so in fact the node title, will be converted only on downloads.
and the real filename will be converted only on uploads.
hope u can understand me now ;)
Comment #11
jvieille commentedOK - so the file name can be different of its node title? I was under the naive impression that they were the same thing :(.
This might explain why I no longer experience problems :)
where the file name is saved, how can we see it?
Comment #12
johanneshahn commentedthe filename is then just the bitcache hash after upload it.
Comment #13
jvieille commentedSo nobody will either see them.. OK!
My guess was right: this solved the problem silently
Comment #14
johanneshahn commenteddo we close this issue?
Comment #15
jvieille commentedComment #16
johanneshahn commentednew feature added