 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Ian Christian's Blog: Handling Uploaded file in symfony's admin generator
by Chris Cornutt March 12, 2010 @ 11:03:15
Ian Christian has an informative new post for the Symfony developers out there. He's figured out a way to handle uploaded files with Symfony's admin generator relatively easily, changing the filename option.
When a file is uploaded using sfForm in the admin generator, by default the filename that's used is a random string, which can look bad in URLs. If you want to change this, it's not immediately obvious how - but it is incredibly simple.
The Symfony project does have some documentation on the topic, but it's not the easiest to read. It basically boils down to is defining a function in your extended class based on the name of the file where you can change the name however you'd like. Code snippets are included to make the point a bit more clear.
voice your opinion now!
symfony framework tutorial upload admin
Programming Facts Blog: Upload large(Big) files in PHP using .htaccess
by Chris Cornutt February 17, 2010 @ 13:19:06
Rakshit Patel has posted a tip to the Programming Facts blog that those out there wanting to upload larger files through your application - change your settings via one of three ways to tell PHP it's okay.
I have seen many developers who find difficulties when working with larger files upload in php. When files which are too large in size [...] If you are uploading file which is larger than 2MB size than here i am showing you the way to upload larger files using PHP.
The method's pretty much the same in each of the three methods. You can either have the settings in your httpd.conf (if you have access to it), in the php.ini or in a .htaccess file in the directory your PHP script is in.
voice your opinion now!
upload large file tutorial phpini httpdconf htaccess
Developer.com: Managing File Uploads with the Zend Framework
by Chris Cornutt November 06, 2009 @ 07:56:50
On Developer.com today there's a new tutorial that looks at working with file uploads in Zend Framework applications and looking more specifically at the Zend_File_Transfer component.
Chances are you've become well acquainted with the Web-based mechanism used to upload files to the Web. But how does this mechanism actually work? What process results in the file being transferred from your computer to the remote server? In this tutorial I'll show you how to create your own file upload mechanism using the popular Zend Framework, which makes accepting, validating, and processing uploaded files a walk in the park.
They look at creating a simple upload form and how to tie a Zend_File_Transfer instance to the backend of it to make uploading and validating the files a simple process. You can find out more information on the component here and another related component, Zend_ProgressBar, here.
voice your opinion now!
zendframework file upload zendfiletransfer
SitePoint.com: How To Handle File Uploads With PHP
by Chris Cornutt July 10, 2009 @ 10:25:50
New on the SitePoint "PHP & MySQL Tutorials" blog today Kevin Yank has posted another excerpt from the "Build Your Own Database Driven Website Using PHP and MySQL" looking at handling file uploads in PHP.
An common challenge faced by PHP programmers is how to accept files uploaded by visitors to your site. In this bonus excerpt from Chapter 12 of [the book] you'll learn how to accept file uploads from your web site visitors securely and store them.
The tutorial introduces the $_FILES superglobal and how you can use it to access the file information about the uploads the user's can make. He also mentions some of the functions that can be used on the files (like is_uploaded_file).
voice your opinion now!
book excerpt tutorial upload file
|
Community Events
Don't see your event here? Let us know!
|