Jump to content

Problem uploading a mp4 file


ottogal
 Share

Recommended Posts

Hi all,

I encounter a strange issue. I have a field of type File with just mp4 as allowed file extension.
A page is using a template that has this field added.
Editing this page, I start the upload of a local mp4 file (around 90 MB of size) to said field.

The progress bar is proceding until 100%, but then the download hangs; the wheel symbol doesn't stop rotating.

What might cause this behaviour?
(PW 3.0.15)

Link to comment
Share on other sites

I also tried   upload_max_filesize  200M   and   post_max_size  300M , to no avail (neither via .htaccess nor via config.php).

It seems that the file size is not the culprit - it doesn't work even for very small files.

In  /wire/config.php  I found the Bad file extensions for uploads, but mp4 was not amongst them.

Then I saw the section

$config->fileContentTypes = array(
    '?' => '+application/octet-stream',
    'pdf' => '+application/pdf',
    'doc' => '+application/msword',
    'docx' => '+application/msword',
    'xls' => '+application/excel',
    'xlsx' => '+application/excel',
    'rtf' => '+application/rtf',
    'gif' => 'image/gif',
    'jpg' => 'image/jpeg',
    'jpeg' => 'image/jpeg',
    'png' => 'image/x-png',
    );
 

and added the line

    'mp4' => 'video/mp4',

but without success.

BTW: Uploading the mp4 files via FTP and refering them in the HTML code works without any issues.

I really need help what to do... Thank you

Link to comment
Share on other sites

I am sorry you are having problems with this.  I really don't know where the problem exists in your circumstance, however let's go over what the PHP Manual says about file uploads:

The source is as follow:

http://php.net/manual/en/ini.core.php#ini.file-uploads

I have made screen shots of what I think are some of the important parts that need to reviewed and understood by all:

post-756-0-71478300-1461259625_thumb.png

post-756-0-50955600-1461259642_thumb.png

post-756-0-83821900-1461259664_thumb.png

Hopefully you will get a clearer understanding of what is required in the PHP configuration portion regarding file uploads.

Best Regards,

Charles

Link to comment
Share on other sites

Just to cover the ProcessWire file field settings also:

post-756-0-51974500-1461260649_thumb.png

post-756-0-42868900-1461260667_thumb.png

If there is something else going on, you will need to be more specific (providing code) or screenshots so we may be able to help you resolve whatever is causing your problem.

Best Regards,

Charles

Link to comment
Share on other sites

Hi cstevensjr,

sorry for my late reply, I was distracted by other issues...

Thank you for your time to do these screenshots. My field settings are okay, and I don't believe that it's a question of file size.

In the meantime I made a strange observation: I added the field (type file, allowed extension mp4) to the template of a page in the Admin branch of the tree (it's a child of Admin). And here I don't have any problem to upload just the same mp4 file I used before...  ???:o

Link to comment
Share on other sites

  • 3 weeks later...

Hi again,

I'm competely at a loss with this problem...

I increased the upload_max_filesize and  post_max_size, also tried to set post_max_size to 0 

Iinspired by another post, I tried this in the .htaccess :

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

All that without success.

I'd highly appreciate any further hints. (Cannot give a link, though.) 

Link to comment
Share on other sites

You may want to open a trouble ticket with your hosing provider.  They may be able to provide some insight into why you are having upload issues.  Please let us know what you find out from your hosting provider.  Good luck.

Link to comment
Share on other sites

Since you are playing around with mod_security settings, I would also try disabling it completely to see if that helps. Maybe also check to see if the server is running suhosin and disable that as well. If it works then you can work backwards to figure out what settings are needed.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...