Welcome Guest, Not a member yet? Register   Sign In
file extention
#1

[eluser]randori21[/eluser]
Why when i upload file i can't see file extention on my file. Please help for this case.
#2

[eluser]beaufrusetta[/eluser]
Going to need some more information. Are you using the File Upload class? (http://ellislab.com/codeigniter/user-gui...ading.html) Posting up some code from your app will help us in determining the issue. :-)
#3

[eluser]InsiteFX[/eluser]
Also are you running on local system or live web site?

InsiteFX
#4

[eluser]randori21[/eluser]
[quote author="beaufrusetta" date="1298595767"]Going to need some more information. Are you using the File Upload class? (http://ellislab.com/codeigniter/user-gui...ading.html) Posting up some code from your app will help us in determining the issue. :-)[/quote]

i have used file upload class. this my code to upload

$this->load->helper('form');
//setting for upload
$config['upload_path'] = './uploads/';
$config['file_name'] = $this->input->post('nama_gbr');
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '300';
$config['max_width'] = '1024';
$config['max_height'] = '768';
$this->load->library('upload',$config);

because, i need file extention to make list.js on tinymce. And i use codeigniter 1.7.2 version. When i try to make view like this:

[file_name] => mypic
[file_type] =>
[file_path] => /path/to/your/upload/
#5

[eluser]randori21[/eluser]
[quote author="InsiteFX" date="1298603350"]Also are you running on local system or live web site?

InsiteFX[/quote]

First, I running my software on local system. Yesterday, i upload on live web, but nothing changed. How about zip format? Any secret about this. Because I can't upload this kind extention.
#6

[eluser]InsiteFX[/eluser]
Any file that you upload you need to specify the allowed type!
Code:
$config['allowed_types'] = 'gif|jpg|png|zip';

You can find these allowed types in application/config/mimes.php

InsiteFX
#7

[eluser]randori21[/eluser]
Thank's a lot for all. I can do all successfully




Theme © iAndrew 2016 - Forum software by © MyBB