Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

why cant upload .flv with 2.3.1?


Gasse1014life

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 >

Link to comment
Share on other sites

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 >

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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') . ' ' . 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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...