1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Can't Upload Files over a certain size

Discussion in 'XenForo Questions and Support' started by Sytheriseida, Nov 24, 2015.

  1. Sytheriseida

    Sytheriseida New Member

    Hi, there.
    It's my second call for support today, it seems.

    I'll try to be brief, but detailed.
    I'm running some tests on my forum at the moment, and I seem unable to upload files or resources over 100kb, for some reason. I've checked my Admin Panel, and everything in there seems correct.

    I've also checked the php.ini file and adjusted filesizes accordingly and restarted the httpd.
    It doesn't seem to be working.

    I just get the following message:

    The following error occurred
    There was a problem uploading your file.

    image-name.jpg

    It doesn't give me any other error log as far as I can see, so it's not very specific.
    I've tried switching off the Flash Player, and I have the same issue, so I prefer to keep it on.
     
  2. Sytheriseida

    Sytheriseida New Member

    Update:

    I've made no progress on rectifying this error.
    I understand if people are busy, I'm just a bit surprised I've not received a reply yet. Is it that difficult a problem, or is something that's asked often? I did Google it, but they didn't give me any answers, so here I am.

    I appreciate any help I can get. ^^

    Thank you~
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    If you are able to upload files and images below a certain size (you didn't say what that size is) then it's going to be some sort of server limit.

    It could be any one of these settings in PHP:
    max_execution_time
    memory_limit
    post_max_size
    upload_max_filesize

    MySQL settings which may be involved:
    max_allowed_packet
    max_packet_size
    wait_timeout
     
  4. Sytheriseida

    Sytheriseida New Member

    Nice to see you again, Brogan. You're just my helping angel today, aren't you? ^^

    In my PHP settings, I've adjusted:
    memory_limit
    post_max_size
    upload_max_filesize

    However, it didn't fix the issue.
    My current max_execution_time is 30. Is there one you'd recommend?

    I'll have to check my MySQL settings, as I haven't done that - but I'm not sure what to edit there!

    Thank you, though.
     
  5. Sytheriseida

    Sytheriseida New Member

    Update:

    I looked at my MySQL my.cnf file (presuming that's what you meant) but I didn't see those parameters in there. Do I need to add them?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Depending on server configuration, it could be something like a my.ini file.
    Or they could be set in a global .cnf file somewhere - e.g. mysql/bin/my.cnf.

    What is the maximum size file you are able to upload?

    Are you sure the php changes have taken?
    You can navigate to /admin.php?tools/phpinfo to double check.
     
  7. Sytheriseida

    Sytheriseida New Member

    I'll give a find for those filenames.

    The forum doesn't seem to be allowing any file above 100kb to go through. It uploads to about 99%, then comes up with an error.

    My PHP configuation is as follows:
    upload_max_filesize = 10M
    post_max_size = 20M
    memory_limit = 128M
    max_execution_time = 60

    I'll get back to you on the MySQL situation.
     
  8. Sytheriseida

    Sytheriseida New Member

    Update:

    There's no my.ini, global.ini or another my.cnf anywhere. I'm not sure where to look XD; But running the find command didn't help at all.
    Also, I was wrong - it goes straight up to 100%, but then denies the picture with the error.
     
  9. Sytheriseida

    Sytheriseida New Member

    Update:

    Turns out, I don't have a mysqld.service file anywhere, or a MySQL directory, which is strange since the service is running. My site wouldn't be up in its database if it wasn't! I'm right confused.
     
  10. Brogan

    Brogan XenForo Moderator Staff Member

    Are you on shared hosting?

    It's likely using a master/global file defined by your host.
     
  11. Sytheriseida

    Sytheriseida New Member

    I don't think I am. I'm running a VPS, and I have root access. I'm not very good with server terms. Autism, heh. I'm still getting used to it all.

    Do you have any idea where I might find those files?
     
  12. Chris D

    Chris D XenForo Developer Staff Member

    Was this supposed to say 100KB or 100MB?

    100KB is a very odd lower limit to have set.

    What size files are you trying to upload?
     
  13. Sytheriseida

    Sytheriseida New Member

    I most certainly meant 100kb. 100MB would probably be easier to manage, but I'm not so lucky.
    I don't know why it's so small, especially since I can't find any issues! It's rather frustrating.

    As of now, I am not explicitly trying to upload anything. I was running general tests to see if it was working, and it turns out, it's not.
    So I'd be rather happy if I could get any file above 100kb to upload, but I'm struggling to do that. :T
     
  14. Brogan

    Brogan XenForo Moderator Staff Member

    Are you able to upload any files or images, even ones smaller than 100KB?

    It's not really clear now whether you can or cannot.
     
  15. Sytheriseida

    Sytheriseida New Member

    My apologies if I'm being unclear. It's certainly not my intention.

    I can upload any file smaller than 100kb (As tested with a couple of small pictures at 20kb and 60kb respectively) but anything above 100kb doesn't seem to upload.
     
  16. Brogan

    Brogan XenForo Moderator Staff Member

    Right, I just wanted to confirm that the actual function/process works.

    It still points to a server limit but as Chris said, it's an unusually low limit.
     
  17. Sytheriseida

    Sytheriseida New Member

    Well, if I can't find the file, do you think I should contact the server support team?
     
  18. Chris D

    Chris D XenForo Developer Staff Member

    We're certainly of the opinion that, if you can upload smaller files, it must be some sort of server limit or configuration in place. With that in mind, your server support team would be better placed to point you in the right direction of what to change.

    As well as MySQL it could be a directive set in your web server config, or some other server software like suhosin.
     
  19. Sytheriseida

    Sytheriseida New Member

    Alright. Thank you. I'll try and contact my support team, as I'm completely lost as to where I should be going, considering it's such a small filesize.

    Thank you very much for your help, and I hope you don't have to see me again too soon. ♥
     
  20. Chris D

    Chris D XenForo Developer Staff Member

    Well, let us know how you get on. It will be interesting to understand who/what sets a 100KB upload limit :)
     

Share This Page