• Hi all,

    I think this is a quick question:

    I just want to know, is there any sort of file-size limit whenever I use the “Add Media” whenever I am creating a standard “Post”? I have a client that wants to use this Add Media to add PDF files into Posts, sometimes. And I see that whenever I start a new “Post”, I click the “Add Media” button, I notice it has a little message on there that says “64 MB file upload limit”. I understand that means that if I, say, insert a PDF file that is 60 MB, then that should upload and be ok since it is less than 64 MB. But if I were to attempt to upload, say, a 70 MB size PDF, it would not upload, because that is more than 64 MB. But my question is, can I insert a few more files that may be, say, 10, or 20 MB each, and go over the 64 MB file-size threshold?

    Like, there’s no sort of “limit” on the file-size in each Post, right? It’s just, WordPress will not upload single files that are larger than 64 MB? I just want to get some clarity on this. Let me know if my question is not clear, and I will quickly share exactly what I mean.

    • This topic was modified 8 years, 6 months ago by etcbbu.
    • This topic was modified 8 years, 6 months ago by etcbbu.
Viewing 9 replies - 1 through 9 (of 9 total)
  • You’re right.
    WordPress posts have no attachment’s size limit, you can ideally attach GB of files to your post.
    The limit is on each file when is being uploaded, and, like you said, you can only upload files that are 64MB or less. Note that this limit depends on the server configuration.

    • This reply was modified 8 years, 6 months ago by eatzeni.
    Thread Starter etcbbu

    (@etcbbu)

    So if the *server* allows, is it *foreseeably possible* that if I can somehow get the SERVER to be able to upload more than 64MB at a time, will I, then, also, be able to do it with this “Add Media” in WordPress?

    Yes.
    The server has two configuration variables (upload_max_filesize and post_max_size) in the php.ini (for Apache), they can be set to any values. The past month I set them to 2GB to allow a big database upload.
    However it is recommended to keep a low values (64MB or less) to avoid problems.

    Thread Starter etcbbu

    (@etcbbu)

    I asked my Web-Server about this, and this is what they said:

    “Unfortunately, it is not possible as that is a wordpress limitation, bigger files are recommended to upload via https://FTP.”

    Are they wrong?

    (if you need it, this is exactly what I asked them: “I would like to know if it is possible to upload a file that is bigger than 64-MB inside of the WordPress environment, even though when I am in the WordPress environment, there is a message stating that ‘files must be less than 64-MB to upload’.” )

    I have a local clean WordPress installation for testing purpose, and there I have 512MB upload limit, and the only thing I edited is my php.ini server configuration file.

    Maybe their server doesn’t allow for choice uploads bigger then 64MB, and they’re right saying that it is recommended to upload big files via FTP, because uploading requires a lot of time and it’s highly probable that the scripts runs in timeout (default is 30 seconds).

    However, if your web-server can increase the limit you shold see the limit in WordPress increased.

    Thread Starter etcbbu

    (@etcbbu)

    @eatzeni:

    Thank you so much for the posts, you’ve given me great insights.

    God bless.

    On this topic, I notice that if I upload the file via FTP to the wp-content/uploads/2017/02 folder, but when I attempt to attach it into a post, it will not show in the media library, and thus I can not add the media to the post. This goes with any file I upload via FTP. I ahve changed the permissions, on the file and it is viable so I’m not sure what I am missing here.

    Uploading the file via FTP is not enough because when WordPress add a Media in the Library it also create rows in the database, and is there that WordPress search for file when you open the media library.

    Unfortunately manual adding a file in the media library requires you to add both the file in the FTP and the rows in the database (in the wp_posts and wp_postmeta) tables), so I discourage you to do so.

    I hope I was clear.

    I figured there had to be something missing, however I did find a plugin that will allow me to browse via the WP interface, to add files to the media library, and by using this is then also add the need rows into the database.

    I use the Ftp because I had on occasion a very large file that I needed for a post that exceeded my 64MB limit. The plugin is called “add from server” and is very helpful for the things I needed to do.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘QUICK Question: File-size limit with “Add Media” in regular Post?’ is closed to new replies.