Error on image upload

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Devorian
    Member
    • Apr 2013
    • 39
    • 5.1.x

    [Bug / Issue] Error on image upload

    hello there, i cannot attach any picture to post on my forum.
    Doesn't depend on size or format.
    All the time getting this error:
    Click image for larger version

Name:	errorupload.png
Views:	925
Size:	17.3 KB
ID:	4377757

    Here is my attachment settings
    Click image for larger version

Name:	attach settings.png
Views:	701
Size:	119.2 KB
ID:	4377758

    Attachment's set to store in database. And i need it to be stored in DB.


    One more thing: when forum was just installed there were problem's to upload logo also and no style preview was showed. But later on logo uploaded - have no idea why it happend.


    p.s.: is it possible to autoresize pictures to max allowed size on upload phase?
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73976

    #2
    It isn't really recommended to store files in the database. You'll need to make sure that both the PHP and MySQL settings can handle that size file.

    p.s.: vBulletin will attempt to resize all image uploads up to the maximum specified in the config.php file.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • Devorian
      Member
      • Apr 2013
      • 39
      • 5.1.x

      #3
      well, SQL and PHP can handle it, but you do not recommend it, right? should i create dedicated folder and call it attchment's and use it?
      Which chmod it should be then?

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 73976

        #4
        Oracle, the makers of MySQL, recommends against storing large files in the database as a best practice. Doing so will impact the performance of your site.

        You can set up File storage under Attachments -> Attachment Storage Type in the AdminCP. The screen will direct you through the process. The folder needs to be chmod 0777. It does not need to be in the web's file path though so you can place it on a more secure path.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • Devorian
          Member
          • Apr 2013
          • 39
          • 5.1.x

          #5
          i was changed it to localfs, made permissions to it.
          Migration was without error's, attachment dtill won't be attached - still getting error like on first screeshot

          Comment

          • Devorian
            Member
            • Apr 2013
            • 39
            • 5.1.x

            #6
            i have no idea why it happens
            the only difference at usual setup is that it running under ssl

            Comment

            • Wayne Luke
              vBulletin Technical Support Lead
              • Aug 2000
              • 73976

              #7
              How big is the original image?

              If you resize it below 4608 X 3456 does it upload?
              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API

              Comment

              • Devorian
                Member
                • Apr 2013
                • 39
                • 5.1.x

                #8
                I was fixed this issue - changed back to DB and checked nginx parameters.
                Now it works perfect

                Comment

                Related Topics

                Collapse

                Working...