Author Topic: Cyrillic filenames  (Read 4854 times)

0 Members and 1 Guest are viewing this topic.

Offline alekseyn1

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • My Project
Cyrillic filenames
« on: May 20, 2010, 06:30:31 AM »
Gents,

I have a problem with my 4images site... I run version 1.7.7 and a lot of my users are trying to upload files named either with Cyrillic names or (probably) containing spaces....

I have a huge number of MODs installed already so downgrading or anything like that is not an option.

Is there a MOD that actually checks the file names? or is there a mod that renames files automatically after the upload (I really would like this one)? or is there a fix that allows 4images to work with non-latin filenames?

My system hangs when trying to either resize (I have an autoresize module installed) or annotate... (no matter if I use GD or ImageMagic)... database entries are added, but the image is not showing properly...

Any hits would be greatly appreciated!

Offline alekseyn1

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • My Project
Re: Cyrillic filenames
« Reply #1 on: October 24, 2010, 12:17:53 PM »
Well,

if anyone interested in a quick fix - please see below. This replaces the file name with the time string (in unix format)

in file includes/upload.php

find
Code: [Select]
      $this->name = $regs[1];
and replace all occurances with

Code: [Select]
      //$this->name = $regs[1];
  $this->name = time();

Any further ideas?
« Last Edit: October 24, 2010, 03:42:36 PM by alekseyn1 »

Offline alekseyn1

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • My Project
Re: Cyrillic filenames
« Reply #2 on: March 06, 2011, 06:00:30 AM »
Well,

this change from V@no and mine shown above finally resolved the problem for me...
http://www.4homepages.de/forum/index.php?topic=27033.msg146563#msg146563

---