Welcome Guest, Not a member yet? Register   Sign In
$config['file_name'] malfunction
#3

[eluser]Maglok[/eluser]
Yeah I have read the userguide. I have tried with extension jpg and then upload a jpg before as well. No dice.

The userguide claims at one point that you need the extension. Forum people claim at one point that you don't. So tried both.

Edit:

Quote:While fixing this bug, we took the opportunity to make an improvement to the Upload class’s ability to allow a file name override. Previously, you needed to do a little dance in your controller to remove the extension from the file name if you were starting from user input; neither could you override the file extension. Now when using the “file_name” config override, you will supply the full file name, including the extension, truly overriding the file name provided by the client user agent.

Ok 1.7.2 seems to have changed this. Still, I tried with extension. Also this is a 1.7.2 I am using.

And to boot: How could I predict what filename extension it is going to be?


Messages In This Thread
$config['file_name'] malfunction - by El Forum - 07-22-2010, 07:08 AM
$config['file_name'] malfunction - by El Forum - 07-22-2010, 07:12 AM
$config['file_name'] malfunction - by El Forum - 07-22-2010, 07:20 AM
$config['file_name'] malfunction - by El Forum - 07-23-2010, 02:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB