Jump to content



Latest News: (loading..)

- - - - -

why cant upload .flv with 2.3.1?


  • Please log in to reply
13 replies to this topic

#1   Gasse1014life

Gasse1014life
  • Members
  • 95 posts
  • Real Name:stephane

Posted 11 June 2012 - 03:52 AM

hi all

lil question

in 2.x.x version wen can  upload .flv files by adding enxtension in the includes/classes/upload.php

function upload($file = '', $destination = '', $permissions = '755', $extensions = array('jpg','png','flv','pdf')) {


in version 2.3.x we can upload jpg, png, pdf,  but wont let me upload a .flv files.

anyone have an idea.


thank you

#2   marrrecki

marrrecki
  • Members
  • 159 posts
  • Real Name:Marek
  • Gender:Male
  • Location:Poland

Posted 11 June 2012 - 10:07 AM

mayby your flv file name is like test.test.flv - if in name i more than one dot, script can take wrong file extension.
Need help? Please contact me:

#3   Gasse1014life

Gasse1014life
  • Members
  • 95 posts
  • Real Name:stephane

Posted 11 June 2012 - 03:07 PM

View Postmarrrecki, on 11 June 2012 - 10:07 AM, said:

mayby your flv file name is like test.test.flv - if in name i more than one dot, script can take wrong file extension.

no , no double dot and file size are under  8MB

#4   marrrecki

marrrecki
  • Members
  • 159 posts
  • Real Name:Marek
  • Gender:Male
  • Location:Poland

Posted 11 June 2012 - 06:11 PM

try to remove all extenxions from upload function and test it.

function upload($file = '', $destination = '', $permissions = '755', $extensions = '') {

Need help? Please contact me:

#5   Gasse1014life

Gasse1014life
  • Members
  • 95 posts
  • Real Name:stephane

Posted 11 June 2012 - 06:41 PM

View Postmarrrecki, on 11 June 2012 - 06:11 PM, said:

try to remove all extenxions from upload function and test it.

function upload($file = '', $destination = '', $permissions = '755', $extensions = '') {

not working, i have try to remove only $extension= too... not working

#6   Gasse1014life

Gasse1014life
  • Members
  • 95 posts
  • Real Name:stephane

Posted 11 June 2012 - 06:47 PM

its working with all existing extension, .txt jpg gif png pdf php ........ but only .flv is not allowed ??????????????????????

#7   germ

germ
  • Members
  • 13,921 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 11 June 2012 - 10:30 PM

I wrote a short stand-alone, password protected, upload program here

You could put it on your site and try to upload using it and not the osC code.

That would at least tell you if it's something in the osC code or something else.

If you can upload using that file then it's something in the osC code preventing the upload.

If you can't upload using that file either then the problem lies elsewhere.
If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#8   germ

germ
  • Members
  • 13,921 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 11 June 2012 - 11:04 PM

Just did a test on a vanilla osc 2.3.1 install I have available.

I had no problems uploading a 1.4 meg .flv file in the osc Admin.
If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#9   Gasse1014life

Gasse1014life
  • Members
  • 95 posts
  • Real Name:stephane

Posted 11 June 2012 - 11:21 PM

yes you have reason , i have try too

2 mo size are ok  but not 15 mo,

ill try to overide option by ini.php or htaccess

#10   marrrecki

marrrecki
  • Members
  • 159 posts
  • Real Name:Marek
  • Gender:Male
  • Location:Poland

Posted 12 June 2012 - 02:36 PM

please contact me via email. I will try to help you but i need access to your store and ftp (server account).
my email: biuro[at]marrrecki[dot ]pl

Edited by marrrecki, 12 June 2012 - 02:36 PM.

Need help? Please contact me:

#11   Gasse1014life

Gasse1014life
  • Members
  • 95 posts
  • Real Name:stephane

Posted 17 June 2012 - 08:08 PM

thank you body , theres is no error, only to edit php.ini files and set max_upload_file_size and after put it in admin section.

thanks a lot

#12   Gasse1014life

Gasse1014life
  • Members
  • 95 posts
  • Real Name:stephane

Posted 17 June 2012 - 08:12 PM

is there a fast way to put an erase button for the pdf database selection u think??

#13   marrrecki

marrrecki
  • Members
  • 159 posts
  • Real Name:Marek
  • Gender:Male
  • Location:Poland

Posted 17 June 2012 - 09:00 PM

I don;t understand.Can you explain it?
Need help? Please contact me:

#14   Gasse1014life

Gasse1014life
  • Members
  • 95 posts
  • Real Name:stephane

Posted 17 June 2012 - 09:15 PM

i have this input field with a tep_draw_input_field to show filename,

<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . tep_draw_file_field('products_fileupload', $pInfo->products_fileupload, 'onkeyup=""') . tep_draw_input_field('products_previous_fileupload', $pInfo->products_fileupload, 'onkeyup=""'); ?></td>

but with 2.3.1 if i erase the box and leave it empty, this not earsing the database and keep last file.