By mirian on
Hi all,
I have a Hebrew Drupal site that gives the ability to attach files to nodes.
My problem is that I'm using a server which isn't configured with UTF8 well, so the file name are seemed as "gibberish" when I'm connecting to the server.
I want to rename the uploaded file names to some random numeric name.
The BIG QUESTION IS : WHERE ???
I see the "upload_save" function in the upload module. I think this is the place but there is no "hook" there....
I tried to change it in the validate step. The $node->files changed in the validation step (called from my module from the “validate” case in hook_nodeapi ), but the changes disappeared in the update step.
Any idea?
Many thanks!
Miriam.
Comments
terminal issue?
What OS is this server, and what do you use to connect? PuTTY, xterm, etc.? It may be that the filenames are proper UTF8 and you just need to configure your terminal. I run Debian Linux and these days use a ??_??.UTF-8 variant for the default locale. I know I'm not answering your question, but it would save a lot of trouble...
שלום
-ארז