Author Topic: Upload fails  (Read 1170 times)

0 Members and 1 Guest are viewing this topic.

Offline valerov

  • Occasional poster
  • *
  • Posts: 3
    • View Profile
Upload fails
« on: March 02, 2017, 03:11:57 PM »
Hello all. Before posting the problem i am facing, i would like to congratulate everyone who is part of the HFS team.

The problem i am facing, is that when trying to upload a file with the first letter of the filename Greek and capital, then the upload fails. If i rename the file, and input the same  as before but with the first letter NOT capital, then it uploads ok. So for example if i try to upload a .docx file with filename Αααα.docx the upload fails with error message "File name or extension forbidden. " Also, above the error message it displays the filename that failed to uploaded. I notice that the first capital letter is replace with questionmark (?) followed by the other letter in english! Sorry if i confuse you, my english is not good.

So, let's assume i have a file with filename Aaaa.docx (but instead of english letters, greek), the file won't upload. if i replace the first capital letter with non capital then it is ok. i tried to change template but i get the same error

Offline LeoNeeson

  • Tireless poster
  • ****
  • Posts: 586
  • Solitario...
    • View Profile
    • twitter.com/LeoNeeson
Re: Upload fails
« Reply #1 on: March 03, 2017, 05:11:38 AM »
Hi, and welcome! :)

Yes, I do understand your problem. Sadly, HFS has poor/limited Unicode support. Doing a search on the forum, you will find there are many people having the same issue. I currently don't know if there will be a 'fix' for this (this is planned for HFS 3), but anyone is welcome to contribute (since this project it's open source).

Cheers,
Leo.-
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
• I'm open to help and share any file you may need (just ask me) ;)

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1890
    • View Profile
Re: Upload fails
« Reply #2 on: March 04, 2017, 12:00:15 AM »
The problem is recurrent on all versions of hfs, it does not support unicode characters in filenames

I have created in notepad++ an empty file encoded with UTF-16LE

paste the name Αααα.docx in np++ and saved file as txt

when open the txt with an hex editor i can see that for the filename

9103 Α
B103 α
B103 α
B103 α
2E00 .
6400 d
6F00 o
6300 c
7800 x

when second byte is not NULL the character has no equivalent on ANSI

Follow members gave a thank to your post:


Offline Fysack

  • Tireless poster
  • ****
  • Posts: 635
  • present picture
    • View Profile
    • Admin
Re: Upload fails
« Reply #3 on: March 05, 2017, 12:47:20 AM »
you ae sooooo sexy Mars  :D
GOD CAN READ YOUR MIND

Offline valerov

  • Occasional poster
  • *
  • Posts: 3
    • View Profile
Re: Upload fails
« Reply #4 on: March 05, 2017, 10:46:08 PM »
So, there is no solution? Mars, i didn't understand your post. Where you suggesting a solution or just explaining why this happens?

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1890
    • View Profile
Re: Upload fails
« Reply #5 on: March 06, 2017, 06:43:19 PM »
just explaining, you must forget unicode filename and verify before uploading

Offline Fysack

  • Tireless poster
  • ****
  • Posts: 635
  • present picture
    • View Profile
    • Admin
Re: Upload fails
« Reply #6 on: September 23, 2017, 11:47:30 PM »
 ;D ;D ;D
GOD CAN READ YOUR MIND