Welcome, Guest
Username: Password: Remember me

TOPIC: Upload file problem

Upload file problem 27 Mar 2012 12:34 #1742

  • Pedro498
  • Pedro498's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
Hi, can anyone help me, i have a problem when upload files, every time that i upload a file, the file extension change to txt, no matters what extension are the file.

Thankyou
The administrator has disabled public write access.

Re: Upload file problem 28 Mar 2012 06:54 #1753

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
What do you have in the 'Rename file' property of your file ?
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Upload file problem 29 Mar 2012 19:46 #1781

  • Pedro498
  • Pedro498's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
Thanks, i changed this two lines in the upload class:

$pattern = "{ALIAS}.{MIMEXT}";
$pattern = "{ALIAS}.{EXT}";

$this->parsePattern($pattern, "MIMEXT", $this->extensionFromMime());
$this->parsePattern($pattern, "EXT", $this->extensionFromMime());
The administrator has disabled public write access.
Time to create page: 0.064 seconds

Get Started