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
8243
Activity
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
Update Logging
If you're using ORM, you might be able to use an observer. If you're using the database class, I don't have a ready answer. I'm looking into it myself, I have a workflow engine in the works that is (amongst others) database tri…
Comment by
WanWizard
June 2011
permalink
Using models through native pdo syntax
Hello Alice, welcome to Fuel. What is $this->_db? Where is that property defined? What do you expect it contains? You can't access a database connection make by Fuel's database class, it's internal in the PDO drivers. If you need…
Comment by
WanWizard
June 2011
permalink
Retrieve error const name by value for Upload
I'm planning to build this into the Upload class, so you don't have to. But in the end the code is going to be the same: a foreach over the files array, and a switch/case to deal with all error codes.
Comment by
WanWizard
June 2011
permalink
Multiple sites utilizing the same application, loading configurations from the database.
You're not limited to the databases pre-defined in the config file. I would use the fixed production database config for your app's system administration (indeed, including stuff about your customers and their configuration). Connect to t…
Comment by
WanWizard
June 2011
permalink
file upload, save under different name
There's an excellent example in the docs, using a closure so you don't have to define the actual callback method. The example alters the path to save to, but you can do any manipulation of the file array.
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,388
Last Active
4:00PM
Roles
Administrator