Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived Development & Programming
how to get file extensions
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
how to get file extensions
El Forum
Guest
#1
03-10-2011, 02:00 AM
[eluser]ebuoe[/eluser]
please how do i get the file extension of a picture while uploading,need it for a critical part of my project , any help would be appreciated
El Forum
Guest
#2
03-10-2011, 03:08 AM
[eluser]Genuine Scope[/eluser]
Code:
end(explode(".", $this->upload->file_name));
El Forum
Guest
#3
03-10-2011, 04:35 AM
[eluser]ebuoe[/eluser]
thanks a lot ,bt i figure out a way to do it ..
/*pass all the upload data to the $img_data array*/
$img_data = $this->upload->data();
/*the file(image) extension type png or gif or jpg*/
$img_ext = $img_data['file_ext'];
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB