Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Upload file problem 27 Mar 2012 12:34 #1742

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

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
What do you have in the 'Rename file' property of your file ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

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

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());

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.077 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started