Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
WanWizard
a.k.a. WanWizard
Discussions
4
Comments
8248
Activity
Problem with multiple upload validation error messages
Ah, a little bit of explanation and code helps... I understand now what you're trying to do here, and if called correctly, that should work. Do I understand you correctly in that if one of the uploads failed, you'll get the same error me…
Comment by
WanWizard
June 2011
permalink
Problem with multiple upload validation error messages
Now I'm confused. This looks like your talking about validation functionality, which has nothing to do with the Upload class (and isn't used to validate uploaded files). Upload deals with $_FILES only, not with $_POST. You should not use …
Comment by
WanWizard
June 2011
permalink
Problem with multiple upload validation error messages
I've been thinking about this. The way it currently works, is that checking stops after the first error encountered. There is only one error code possible, and therefore also only one error message. Changing this means changing the logic of th…
Comment by
WanWizard
June 2011
permalink
CMS can not be this easy!
My point is that if we deal with the odd way of 404 routing, we don't need to introduce _catchall_ as a workaround, because basically the 404 route IS (or should be) a catch all... The router should deal with the 404 handling internally, and r…
Comment by
WanWizard
April 2011
permalink
CMS can not be this easy!
I don't think this is the way to go, as it doesn't fix the real issue, which is: the 404 route is not a controller/method combo, it's a route. This means you can't simply use it as a last resort route, it has to be processed by …
Comment by
WanWizard
April 2011
permalink
Problem with multiple upload validation error messages
Valid point, it doesn't take into account that you can have multiple errors. I'll see if I can fix this today ('messages' has to be an array of strings, instead of a string).
Comment by
WanWizard
June 2011
permalink
Need help using the Upload Class
I've added a usage example to the Upload docs (in the develop branch).
Comment by
WanWizard
June 2011
permalink
Retrieve error const name by value for Upload
And done. The get_files() and get_errors() methods now return an extra array key 'message'.
Comment by
WanWizard
June 2011
permalink
Need help using the Upload Class
Or errors in the processing? get_files() only returns the uploaded files that are valid, get_errors() the ones that are rejected.
Comment by
WanWizard
June 2011
permalink
Need help using the Upload Class
You will need to process your uploaded files first, using Upload::process(). This will validate all uploads, and process all successful uploads according to the configuration. After that, you can call get_files() to get all valid files, and get_err…
Comment by
WanWizard
June 2011
permalink
Retrieve file informations with file handler
Implemented some improvements. I've got no issues here with FF3/4, IE7/8 and Chrome. For Chrome, you can enable the prompt for a 'save as' in the preferences so it gives you a popup as well.
Comment by
WanWizard
June 2011
permalink
Session class database table change
There is no seperate changelog for the development branch. For development, you'll have to use the commit history: https://github.com/fuel/core/commits/develop.
Comment by
WanWizard
June 2011
permalink
Should Asset::css returning Fuel_Exception?
Just a thought: instead of trying to catch issues like this in your application, isn't it time to review your deployment strategy?
Comment by
WanWizard
June 2011
permalink
Session class database table change
Correct. And tweeted, and... This is done to support proxied clients and IPv6 addresses.
Comment by
WanWizard
June 2011
permalink
How to work from the development branch?
This issue is probably that fuel works with git submodules, but a fork is not aware of that (you fork a single repo). Start with a fresh install from the Fuel repo: git clone --recursive git://github.com/fuel/fuel.git Now you'll have swap t…
Comment by
WanWizard
June 2011
permalink
Retrieve file informations with file handler
Grrr... Why is it always IE that f***s things up? I'll have a look later today...
Comment by
WanWizard
June 2011
permalink
Appending urls generated by fuel.
No, not at the moment. If you require this, please add this as a feature request: http://github.com/fuel/core/issues.
Comment by
WanWizard
June 2011
permalink
Retrieve file informations with file handler
Just pushed the commits to the develop branch. Docs are updated too. Is this sufficient?
Comment by
WanWizard
June 2011
permalink
Retrieve file informations with file handler
Too late. I'm about to commit the update to the file class (including a fileinfo() and download() method).
Comment by
WanWizard
June 2011
permalink
Retrieve file informations with file handler
On second thought, maybe we have to come up with something clever here. fileinfo() has issues on Windows, and needs custom configuration on lots of Linux platforms as well. The Upload class currently uses fileinfo() as well, so centralizing this fu…
Comment by
WanWizard
June 2011
permalink
Retrieve file informations with file handler
Yeah, no point in building in features that are readily available in plain PHP...
Comment by
WanWizard
June 2011
permalink
Update Logging
These three tables are updated externally? And you need to sync them with tables in your app?
Comment by
WanWizard
June 2011
permalink
Download/display file
There is no ready-made download class (as of today). You may wish to add this as a feature request at http://github.com/fuel/core/issues.
Comment by
WanWizard
June 2011
permalink
Retrieve file informations with file handler
You don't. You use pathinfo() to get file name related information, and fileinfo() to get file content related information.
Comment by
WanWizard
June 2011
permalink
Modules and Crypt
Crypt.php line 121 is a comment line, which version of Fuel are you using? The crypt config file is created as soon as the crypt class is loaded, which is when you call a crypt method (directly or for example via sessions). No autoload is needed.
Comment by
WanWizard
June 2011
permalink
More Comments
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
About
Username
WanWizard
Joined
January 2011
Visits
2,478
Last Active
March 12
Roles
Administrator