Announcement

Collapse
No announcement yet.

Error Message when uploading images

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error Message when uploading images

    Hi All!
    I have a form application which involves the upload of a thumbnail. Up until recently it has been working fine. Right now when we try to upload we get a yellow message box showing ERROR:THumb. And nothing else.
    Here is what we have tried

    * Regenerating the app
    * Making all permissions of the _lib folder and contents 777
    * Trying it out on another server
    * Updating Scriptcase to 7.1 latest
    * Making the locale change suggested elsewhere in the forum

    Does anyone have any ideas?
    Thanks for any tips
    Prema

  • #2
    I assume you use the file document type? (even tho the other one can go wrong too).
    Please first check if the file even gets uploaded to your tmp dir, it should be named like sc_xxxxxxxx_yourfilename.ext where x is number or an alphanumeric character.
    Did you make an ADVANCED deployment with the paths in it? You basically have to otherwise file uploads dont really work well (in my experience).
    Basically in sc a file gets uploaded to the tmp dir, then once the row is saved the file is moved to the img or file dir (or into the database).

    Comment


    • #3
      Thanks very much for the comment there are a couple of good ideas there.
      Did notice that the database field was set to blob so am about to take a look at that
      Will try the advanced deployment and post back
      Your help much appreciated

      Originally posted by rr View Post
      I assume you use the file document type? (even tho the other one can go wrong too).
      Please first check if the file even gets uploaded to your tmp dir, it should be named like sc_xxxxxxxx_yourfilename.ext where x is number or an alphanumeric character.
      Did you make an ADVANCED deployment with the paths in it? You basically have to otherwise file uploads dont really work well (in my experience).
      Basically in sc a file gets uploaded to the tmp dir, then once the row is saved the file is moved to the img or file dir (or into the database).

      Comment


      • #4
        Further to original.
        The file is not appearing in the tmp folder.
        We tried an advanced deploy and found setting the paths confusing.
        Under advanced deploy can we chose the paths?
        Does *LIbrary* mean the _lib directory?

        Can anyone point us at a clarification or walkthrough?
        Thanks for any help

        Comment


        • #5
          You need to resize the image and then upload.

          Comment


          • #6
            library means the path to the _lib dir indeed.
            The file should appear (tho named sc_...._yourfilename.yourextension or similar). If not then maybe there is a rights issue, tho with 777 there shouldnt be...
            In such cases the solution is simple tho somewhat time consuming, install xdebug (or any other php debugger) and start debugging.
            In advanced deployment the paths are relative to your webserver path EXCEPT the documents folder, that is absolute.
            If you do not use advanced deployment the paths will default to _lib/file/img and _lib/tmp and _lib/file/doc
            check out the generated source code in the main php of your code (if you app is named myapp then this would be myapp.php ). In the furst couple of lines you will se
            the paths around line 300 or so (depending on the type of app you make) you'll see the default paths.

            Comment

            Working...
            X