Menu

Crash on IE 7.0.573 -Fine on FireFox 2.0.0.12

Help
2008-02-28
2012-09-21
  • LeAnn Smith

    LeAnn Smith - 2008-02-28

    I tried the jupload test site: http://etiennegauthier.free.fr/coppermine/
    on my XP system with 2 different browsers.

    IE 7.0.573 loads the java console, the Coppermine page never changes, and all instances of the browser are closed! (How rude!)

    FireFox 2.0.0.12 all is well! I could test the upload process on the test site as expected.

    Please email if at all possible if there is any finding on this.
    Let me know if I can help!
    LeAnnSmith@webpagesmith.com
    Thank you so much!

     
    • Werner Smidt

      Werner Smidt - 2008-04-17

      Woops .. sorry .. wrong thread

       
    • Etienne

      Etienne - 2008-02-29

      Hi,

      Which Java version do you use ?

      FYI: I'll be off one week. My next answer will probably be longer than this one ...

      Etienne

       
      • LeAnn Smith

        LeAnn Smith - 2008-03-05

        Thank you SO MUCH for the quick response!
        I updated from jdk 6, update 4 to update 10 and it no longer crashes, but I do not see the BROWSE button in IE7.
        -Can work around this by using FireFox.

        BIGGER ISSUE: I CAN upload a jpg of size 2.79 without changing its size using the standard Upload link, but NOT using jUpload. (My PRINT SHOP customer wants to use the large original) If my Coppermine Max Upload size is 3000kb, the standard upload link ftps it over without resizing. -My server has no maximum for ftp.
        http://www.webpagesmith.com/webphotos/byasfotoworld/albums/userpics/mrBig.JPG

        But, no matter what my CPG configuration is, I either get an error "uploaded ((1. , mrBig.JPG, Exceeded filesize permitted by CPG. ))", or the uploaded file is resized to 796kb using jUpload.

        Config:
        CPG Max CPG Max jUpload jUpload jUpload Max Behavior
        Upload width/height Max Chunk Max File Sz nonTrzfmdPicSz


        2000 kb 3000 kb 2000 kb 3000 kb ---- resized
        2000 3000 2000 3000 2000000 resized
        2000 3000 2000 3000 3000000 error
        3000 4000 2000 ---- ---- resized
        3000 4000 2000 ---- 3000000 error
        3000 4000 1000 ---- 3000000 error
        4000 4000 1000 ---- ---- resized

        My server's php limit is 2mb. The file size is 2791kb. 2816 width pixels by 2112 height.

        PLEASE ADVISE! This whole project is depending on this! I REALLY appreciated it!

        FYI, Your support button on the Coppermine install takes you to the Coppermine forum -which is why I posted my question there. -You asked me not to "cross post". You may want to change your support button.
        :-)

         
      • Werner Smidt

        Werner Smidt - 2008-04-17

        Yeah, I have the same problem

        Not much info, Java version 1.5.0 (build 1.5.0_09-b01). Don't know if that'll help. The java console does not dump any useful information ... crashes before it gets to it .. I really tried my ass off to see what could be causing it, but to no avail :(

        What a good motivator to start coding in Java .. just to solve this problem ;)

         
    • Etienne

      Etienne - 2008-03-09

      Hum, hum,

      My opinion is that you should 'play' with the maxChunkSize parameter. Everything is well documented on the configuration page.

      Etienne

       
    • LeAnn Smith

      LeAnn Smith - 2008-03-10

      The documentation states that the file should be uploaded "as is" if the MaxNonTransformed pic size is set to something larger than your pictures width and height.
      This is not the case. The photo is resized no matter what to 796kb from 2.79megs.

      As far as the maxChunkSize, you can see that I tried 2000kb and 1000kb. This is not a case of not reading the documentation as I have been reading and 'playing' with this for a week now knowing that you were on vacation.

      According to the documentation, the following set of parameters should upload my photo without resizing it. (But it does not -uploaded photo is 796kb)
      CPG Max upload size: 4000 kb,
      CPG Max width/height: 3000 kb,
      jUpload maxChunkSize: 2000 kb,
      jUpload maxFileSize: ---- (4000 kb default),
      jUpload maxNonTransformedPictureSize: 4000 kb

      By the way, with these settings, the standard Upload link in Coppermine DOES indeed upload the picture without resizing.

      Please help!
      Thanks again!

       
      • LeAnn Smith

        LeAnn Smith - 2008-03-10

        If the maxChunkSize is empty or 4000, the photo still resizes.
        Other params as indicated in prior post.

         
    • Etienne

      Etienne - 2008-03-10

      Ok,

      I've read too fast your previous post. Can you put debug on, upload your file and copy the full debug ouput here, so that I have more information on what's hapening ?

      Etienne

       
      • LeAnn Smith

        LeAnn Smith - 2008-03-10

        Java Console:

        Java Plug-in 1.6.0_10-ea
        Using JRE version 1.6.0_10-ea Java HotSpot(TM) Client VM
        User home directory = C:\Documents and Settings\LeAnn Smith

        Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
        at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
        at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(Unknown Source)
        at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
        at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
        at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
        at javax.swing.DefaultListSelectionModel.moveLeadSelectionIndex(Unknown Source)
        at sun.swing.FilePane.clearSelection(Unknown Source)
        at sun.swing.FilePane$4.contentsChanged(Unknown Source)
        at javax.swing.AbstractListModel.fireContentsChanged(Unknown Source)
        at javax.swing.plaf.basic.BasicDirectoryModel.fireContentsChanged(Unknown Source)
        at javax.swing.plaf.basic.BasicDirectoryModel$DoChangeContents.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


        jUpload Applet status:

        19:17:18.046 [INFO] Debug level set to 100
        19:17:18.234 [INFO] Current debug output file: C:\DOCUME~1\LEANNS~1\LOCALS~1\Temp\jupload_14248_log.txt
        19:17:18.234 [DEBUG] setLang - language read (no country): us
        19:17:18.656 [WARN] Invalid int value: true, using default value: 0
        19:17:18.687 [DEBUG] cookie: 18ecd381262ba714e81d70860e8b2455=582ce261ae51a31c6562cdce2c7af7e9; PHPSESSID=ee311002ebc13c290c66dbee86f5d208; coppermine_data=YTo0OntzOjI6IklEIjtzOjMyOiI1NGE1OGY1NmIxYzMwYTJhYjIwYjQwMzIxMzZhNTM0NSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjM6ImxpdiI7YToxOntpOjA7czozOiIxNDUiO319
        19:17:18.687 [DEBUG] userAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
        19:17:18.703 [DEBUG] uploadPolicy parameter = CoppermineUploadPolicy
        19:17:18.703 [DEBUG] uploadPolicy = wjhk.jupload2.policies.CoppermineUploadPolicy
        19:17:18.703 [DEBUG] =======================================================================
        19:17:18.703 [DEBUG] ======= Parameters managed by DefaultUploadPolicy
        19:17:18.703 [INFO] JUpload applet, version 3.3.0rc1 [SVN-Rev: 414] (compiled: 02/22/2008 10:24 PM), available at http://jupload.sourceforge.net/
        19:17:18.703 [DEBUG] Java version: 1.6.0_10-ea
        19:17:18.703 [DEBUG] Cookie: 18ecd381262ba714e81d70860e8b2455=582ce261ae51a31c6562cdce2c7af7e9; PHPSESSID=ee311002ebc13c290c66dbee86f5d208; coppermine_data=YTo0OntzOjI6IklEIjtzOjMyOiI1NGE1OGY1NmIxYzMwYTJhYjIwYjQwMzIxMzZhNTM0NSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjM6ImxpdiI7YToxOntpOjA7czozOiIxNDUiO319
        19:17:18.703 [DEBUG] userAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
        19:17:18.703 [DEBUG] List of all applet parameters:
        19:17:18.718 [DEBUG] language: us
        19:17:18.718 [DEBUG] country:
        19:17:18.718 [DEBUG] afterUploadURL: null
        19:17:18.718 [DEBUG] allowHttpPersistent: false
        19:17:18.718 [DEBUG] allowedFileExtensions: /jpg/jpeg/jpe/gif/png/bmp/jpc/jp2/jpx/jb2/swc/iff/asf/asx/mpg/mpeg/wmv/swf/avi/mov/mp3/midi/mid/wma/wav/ogg/psd/doc/txt/rtf/pdf/xls/pps/ppt/zip/gz/mdb/
        19:17:18.718 [DEBUG] debugLevel: 100 (debugfile: C:\DOCUME~1\LEANNS~1\LOCALS~1\Temp\jupload_14248_log.txt)
        19:17:18.718 [DEBUG] fileChooserIconFromFileContent: 0
        19:17:18.718 [DEBUG] fileChooserIconSize: 50
        19:17:18.718 [DEBUG] filenameEncoding: null
        19:17:18.718 [DEBUG] lang: us
        19:17:18.718 [DEBUG] maxChunkSize: 4000000
        19:17:18.718 [INFO] maxFileSize: 4000000
        19:17:18.718 [DEBUG] nbFilesPerRequest: 1
        19:17:18.750 [DEBUG] postURL: http://byasfotoworld.webphotos.ws/index.php?file=jupload/jupload&action=upload_picture
        19:17:18.750 [DEBUG] serverProtocol: HTTP/1.1
        19:17:18.750 [DEBUG] showLogWindow: false
        19:17:18.750 [DEBUG] showStatusbar: true
        19:17:18.750 [DEBUG] specificHeaders: null
        19:17:18.765 [DEBUG] stringUploadSuccess: ^SUCCESS$
        19:17:18.765 [DEBUG] stringUploadError: ^ERROR: (.)$
        19:17:18.765 [DEBUG] urlToSendErrorTo: http://byasfotoworld.webphotos.ws/index.php?file=jupload/jupload&action=log_error
        19:17:18.765 [DEBUG]
        19:17:18.765 [DEBUG] ======= Parameters managed by PictureUploadPolicy
        19:17:18.765 [DEBUG] fileChooserImagePreview: true
        19:17:18.765 [DEBUG] highQualityPreview : false
        19:17:18.781 [DEBUG] pictureCompressionQuality : 0.8
        19:17:18.781 [DEBUG] pictureTransmitMetadata : false
        19:17:18.781 [DEBUG] maxPicWidth : 4000, maxPicHeight : 4000
        19:17:18.781 [DEBUG] realMaxPicWidth : 3000, realMaxPicHeight : 3000
        19:17:18.781 [DEBUG] storeBufferedImage : false
        19:17:18.781 [DEBUG] targetPictureFormat : null
        19:17:18.781 [DEBUG]
        19:17:18.781 [DEBUG] ======= Parameters managed by CoppermineUploadPolicy
        19:17:18.781 [DEBUG] albumId : 0
        19:17:18.781 [DEBUG]
        19:17:20.859 [DEBUG] Within componentResized
        19:17:20.890 [DEBUG] PicturePanel.paint(): offscreenImage is null
        19:17:20.890 [DEBUG] PicturePanel.paint(): offscreenImage is null
        19:17:21.484 [DEBUG] [CoppermineUploadPolicy] Call off setProperty: albumId =>
        19:17:21.546 [WARN] Invalid int value: , using default value: 0
        19:17:21.546 [DEBUG] Post URL (modified in CoppermineUploadPolicy) = http://byasfotoworld.webphotos.ws/index.php?file=jupload/jupload&action=upload_picture&album=0
        19:17:21.546 [INFO] JUpload plugin for coppermine version 3.0.1
        19:17:25.250 [DEBUG] [CoppermineUploadPolicy] Call off setProperty: albumId => 6
        19:17:25.265 [DEBUG] Post URL (modified in CoppermineUploadPolicy) = http://byasfotoworld.webphotos.ws/index.php?file=jupload/jupload&action=upload_picture&album=6
        19:17:27.500 [DEBUG] PicturePanel.paint(): offscreenImage is null
        19:17:31.921 [DEBUG] Action : Browse ...
        19:17:32.421 [DEBUG] [JUploadFileView.execute] Adding C:\Documents and Settings\LeAnn Smith\My Documents\accounts.txt
        19:17:32.421 [DEBUG] JUploadFileView.execute: creating the executorService
        19:17:32.421 [DEBUG] In IconWorker.loadIcon(accounts.txt)
        19:17:32.421 [DEBUG] [JUploadFileView.execute] Adding C:\Documents and Settings\LeAnn Smith\My Documents\AcuraBillOfSale.doc
        19:17:37.609 [DEBUG] [JUploadFileView] Directory changed
        19:17:37.609 [DEBUG] Shutting down all IconWorker running jobs
        19:17:37.625 [DEBUG] All IconWorker running jobs are now marked as stopped.
        19:17:37.656 [DEBUG] [JUploadFileView.execute] Adding C:\Documents and Settings\LeAnn Smith\My Documents_TEST\mrBig.JPG
        19:17:37.656 [DEBUG] [JUploadFileView.execute] Adding C:\Documents and Settings\LeAnn Smith\My Documents_TEST\mrBig2.JPG
        19:17:37.968 [DEBUG] In IconWorker.loadIcon(mrBig.JPG)
        19:17:40.781 [DEBUG] In IconWorker.loadIcon(mrBig2.JPG)
        19:17:45.531 [DEBUG] LoadImageThread.start (start)
        19:17:45.890 [DEBUG] Creation of the DefaultFileData for C:\Documents and Settings\LeAnn Smith\My Documents_TEST\mrBig.JPG(root: C:\Documents and Settings\LeAnn Smith\My Documents_TEST)
        19:17:46.093 [DEBUG] Mime types list loaded Ok (/conf/mimetypes.properties)
        19:17:46.437 [DEBUG] LoadImageThread.start (end)
        19:17:47.796 [DEBUG] isPicture=true (mrBig.JPG), extension=JPG
        19:17:47.796 [DEBUG] Shutting down all IconWorker running jobs
        19:17:47.796 [DEBUG] All IconWorker running jobs are now marked as stopped.
        19:17:47.937 [DEBUG] PicturePanel.paint(): offscreenImage is null
        19:18:08.843 [DEBUG] PicturePanel.paint(): offscreenImage is null
        19:18:10.765 [DEBUG] Action : Upload
        19:18:10.859 [DEBUG] Upload done by using the wjhk.jupload2.upload.FileUploadThreadHTTP class
        19:18:10.859 [DEBUG] Resizing factor (scale): 1.4204545454545454
        19:18:10.859 [DEBUG] Timer started
        19:18:10.953 [DEBUG] Using transformed temp file C:\DOCUME~1\LEANNS~1\LOCALS~1\Temp\jupload_14249.tmp for mrBig.JPG
        19:18:11.000 [DEBUG] PicturePanel.paint(): offscreenImage is null
        19:18:11.031 [DEBUG] ImageWriter1 (used), CompressionQuality=0.8
        19:18:11.156 [DEBUG] Reading image with imageWriterHelper.readImage(i)
        19:18:11.156 [DEBUG] [getWorkingSourceFile] Creating a copy of mrBig.JPG as a source working target.
        19:18:11.328 [DEBUG] Using working copy temp file C:\DOCUME~1\LEANNS~1\LOCALS~1\Temp\jupload_14250.tmp.JPG for mrBig.JPG
        19:18:11.484 [DEBUG] Foud one reader for JPG extension
        19:18:11.703 [DEBUG] Nb images in mrBig.JPG: 1
        19:18:11.703 [DEBUG] ImageReaderWriterHelper: reading picture number 0 of file mrBig.JPG
        19:18:12.437 [DEBUG] getBufferedImage: start
        19:18:12.437 [DEBUG] getBufferedImage: Picture is now rescaled
        19:18:12.437 [DEBUG] getBufferedImage: BufferedImage@6078e7: type = 5 ColorModel: #pixelBits = 24 numComponents = 3 color space = java.awt.color.ICC_ColorSpace@1a1bc40 transparency = 1 has alpha = false isAlphaPre = false ByteInterleavedRaster: width = 2816 height = 2112 #numDataElements 3 dataOff[0] = 2
        19:18:12.437 [DEBUG] getBufferedImage: MinX=0
        19:18:12.437 [DEBUG] getBufferedImage: MinY=0
        19:18:12.437 [DEBUG] getBufferedImage: was 0 ms long
        19:18:12.562 [DEBUG] freeMemory (after ImageHelper.getBufferedImage()) : 43733984
        19:18:13.687 [DEBUG] file 0: content=815542 bytes, getAdditionnalBytesForUpload=1614 bytes
        19:18:13.687 [DEBUG] chunkHttpParam: jupart=0&jufinal=1
        19:18:13.703 [DEBUG] Cookie: 18ecd381262ba714e81d70860e8b2455=582ce261ae51a31c6562cdce2c7af7e9; PHPSESSID=ee311002ebc13c290c66dbee86f5d208; coppermine_data=YTo0OntzOjI6IklEIjtzOjMyOiI1NGE1OGY1NmIxYzMwYTJhYjIwYjQwMzIxMzZhNTM0NSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjM6ImxpdiI7YToxOntpOjA7czozOiIxNDUiO319
        19:18:13.703 [DEBUG] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
        19:18:13.890 [DEBUG] Using non SSL socket, direct connection
        19:18:13.968 [DEBUG] === main header (len=1212):
        19:18:13.968 [DEBUG] POST /index.php?file=jupload/jupload&action=upload_picture&album=6 HTTP/1.1\r\n
        19:18:13.968 [DEBUG] Host: byasfotoworld.webphotos.ws\r\n
        19:18:13.968 [DEBUG] Accept:
        /*\r\n
        19:18:13.968 [DEBUG] Accept-Encoding: identity\r\n
        19:18:13.968 [DEBUG] Connection: close\r\n
        19:18:13.968 [DEBUG] Content-Type: multipart/form-data; boundary=---------------------------1ytk7qx5ir3\r\n
        19:18:13.968 [DEBUG] Content-Length: 817660\r\n
        19:18:13.968 [DEBUG] Content-Type: UTF-8\r\n
        19:18:13.968 [DEBUG] Cookie: 18ecd381262ba714e81d70860e8b2455=582ce261ae51a31c6562cdce2c7af7e9; PHPSESSID=ee311002ebc13c290c66dbee86f5d208; coppermine_data=YTo0OntzOjI6IklEIjtzOjMyOiI1NGE1OGY1NmIxYzMwYTJhYjIwYjQwMzIxMzZhNTM0NSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjM6ImxpdiI7YToxOntpOjA7czozOiIxNDUiO319\r\n
        19:18:13.968 [DEBUG] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12\r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] -----------------------------1ytk7qx5ir3\r\n
        19:18:13.968 [DEBUG] Content-Disposition: form-data; name="file"\r\n
        19:18:13.968 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
        19:18:13.968 [DEBUG] Content-Type: text/plain; UTF-8\r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] jupload/jupload\r\n
        19:18:13.968 [DEBUG] -----------------------------1ytk7qx5ir3\r\n
        19:18:13.968 [DEBUG] Content-Disposition: form-data; name="album"\r\n
        19:18:13.968 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
        19:18:13.968 [DEBUG] Content-Type: text/plain; UTF-8\r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] 6\r\n
        19:18:13.968 [DEBUG] -----------------------------1ytk7qx5ir3\r\n
        19:18:13.968 [DEBUG] Content-Disposition: form-data; name="action"\r\n
        19:18:13.968 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
        19:18:13.968 [DEBUG] Content-Type: text/plain; UTF-8\r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] upload_picture\r\n
        19:18:13.968 [DEBUG] === main header end
        19:18:13.968 [DEBUG] --- fileheader start (len=1375):
        19:18:13.968 [DEBUG] -----------------------------1ytk7qx5ir3\r\n
        19:18:13.968 [DEBUG] Content-Disposition: form-data; name="title"\r\n
        19:18:13.968 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
        19:18:13.968 [DEBUG] Content-Type: text/plain; UTF-8\r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] -----------------------------1ytk7qx5ir3\r\n
        19:18:13.968 [DEBUG] Content-Disposition: form-data; name="caption"\r\n
        19:18:13.968 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
        19:18:13.968 [DEBUG] Content-Type: text/plain; UTF-8\r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] -----------------------------1ytk7qx5ir3\r\n
        19:18:13.968 [DEBUG] Content-Disposition: form-data; name="keywords"\r\n
        19:18:13.968 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
        19:18:13.968 [DEBUG] Content-Type: text/plain; UTF-8\r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] -----------------------------1ytk7qx5ir3\r\n
        19:18:13.968 [DEBUG] Content-Disposition: form-data; name="mimetype[]"\r\n
        19:18:13.968 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
        19:18:13.968 [DEBUG] Content-Type: text/plain; UTF-8\r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] image/jpeg\r\n
        19:18:13.968 [DEBUG] -----------------------------1ytk7qx5ir3\r\n
        19:18:13.968 [DEBUG] Content-Disposition: form-data; name="pathinfo[]"\r\n
        19:18:13.968 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
        19:18:13.968 [DEBUG] Content-Type: text/plain; UTF-8\r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] C:\Documents and Settings\LeAnn Smith\My Documents_TEST\r\n
        19:18:13.968 [DEBUG] -----------------------------1ytk7qx5ir3\r\n
        19:18:13.968 [DEBUG] Content-Disposition: form-data; name="relpathinfo[]"\r\n
        19:18:13.968 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
        19:18:13.968 [DEBUG] Content-Type: text/plain; UTF-8\r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] -----------------------------1ytk7qx5ir3\r\n
        19:18:13.968 [DEBUG] Content-Disposition: form-data; name="filemodificationdate[]"\r\n
        19:18:13.968 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
        19:18:13.968 [DEBUG] Content-Type: text/plain; UTF-8\r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] 05/03/2008 08:09:54\r\n
        19:18:13.968 [DEBUG] -----------------------------1ytk7qx5ir3\r\n
        19:18:13.968 [DEBUG] Content-Disposition: form-data; name="userpicture"; filename="mrBig.JPG"\r\n
        19:18:13.968 [DEBUG] Content-Type: image/jpeg\r\n
        19:18:13.968 [DEBUG] \r\n
        19:18:13.968 [DEBUG] --- fileheader end
        19:18:13.968 [DEBUG] in UploadFileData.uploadFile (amount:815542, getUploadLength(): 815542)
        19:18:17.109 [DEBUG] --- filetail start (len=239):
        19:18:17.109 [DEBUG] \r\n
        19:18:17.109 [DEBUG] -----------------------------1ytk7qx5ir3\r\n
        19:18:17.109 [DEBUG] Content-Disposition: form-data; name="md5sum[]"\r\n
        19:18:17.109 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
        19:18:17.109 [DEBUG] Content-Type: text/plain; UTF-8\r\n
        19:18:17.109 [DEBUG] \r\n
        19:18:17.109 [DEBUG] 34c9ddb06b4ae67dc910370590780fbd\r\n
        19:18:17.109 [DEBUG] -----------------------------1ytk7qx5ir3--\r\n
        19:18:17.109 [DEBUG] --- filetail end
        19:18:19.843 [DEBUG] -------- Response Headers Start --------
        19:18:19.843 [DEBUG] HTTP/1.1 200 OK
        19:18:19.843 [DEBUG] Date: Mon, 10 Mar 2008 23:18:13 GMT
        19:18:19.843 [DEBUG] Server: Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.30 OpenSSL/0.9.7a PHP-CGI/0.1b
        19:18:19.843 [DEBUG] Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
        19:18:19.843 [DEBUG] Expires: Thu, 19 Nov 1981 08:52:00 GMT
        19:18:19.843 [DEBUG] Pragma: no-cache
        19:18:19.843 [DEBUG] X-Powered-By: PHP/4.4.4
        19:18:19.843 [DEBUG] Connection: close
        19:18:19.843 [DEBUG] Transfer-Encoding: chunked
        19:18:19.859 [DEBUG] Content-Type: text/plain; charset=UTF-8
        19:18:19.859 [DEBUG]
        19:18:19.859 [DEBUG] --------- Response Headers End ---------
        19:18:19.859 [DEBUG] Chunk: 430 dec: 1072
        19:18:19.859 [DEBUG] Chunk: 0 dec: 0
        19:18:19.859 [DEBUG] HTTP status: 200 OK
        19:18:19.859 [DEBUG] -------- Response Body Start --------
        19:18:19.859 [DEBUG] Entering loadJuploadInternalSessionIfConfiguredTo
        19:18:19.859 [DEBUG] loadJuploadInternalSessionIfConfiguredTo: Before connection
        19:18:19.859 [DEBUG] loadJuploadInternalSessionIfConfiguredTo: connection result=1
        19:18:19.859 [DEBUG] loadJuploadInternalSessionIfConfiguredTo: before select from config
        19:18:19.859 [DEBUG] End of loadJuploadInternalSessionIfConfiguredTo (1)
        19:18:19.859 [DEBUG] [DEBUG] jupload.php: Using Coppermine USER_DATA
        19:18:19.859 [DEBUG] [DEBUG] jupload.php: before switch
        19:18:19.859 [DEBUG] [DEBUG] upload_picture.php: Entering upload_picture.php
        19:18:19.859 [DEBUG] [DEBUG] upload_picture.php: j_picmgmt.inc.php included
        19:18:19.859 [DEBUG] [DEBUG] upload_picture.php: Before saveJuploadInternalSessionIfConfiguredTo
        19:18:19.859 [DEBUG] [DEBUG] upload_picture.php: After saveJuploadInternalSessionIfConfiguredTo
        19:18:19.859 [DEBUG] [DEBUG] upload_picture.php: Before handle_uploaded_files
        19:18:19.859 [DEBUG] [DEBUG] j_picmgmt.inc.php: receiving the 'mrBig.JPG' file.
        19:18:19.859 [DEBUG] [DEBUG] upload_picture.php: After handle_uploaded_files
        19:18:19.859 [DEBUG] [DEBUG] upload_picture.php: Before jupload_add_physical_file
        19:18:19.859 [DEBUG] [DEBUG] upload_picture.php: After jupload_add_physical_file
        19:18:19.859 [DEBUG] SUCCESS
        19:18:19.859 [DEBUG] [DEBUG] upload_picture.php: After jupload_add_physical_file
        19:18:19.859 [DEBUG] [DEBUG] upload_picture.php: Before after_upload
        19:18:19.859 [DEBUG] End of upload_picture.php
        19:18:19.859 [DEBUG] --------- Response Body End ---------
        19:18:19.875 [DEBUG] FileUploadThread: within run().finally
        19:18:20.062 [WARN] Temporary file not deleted
        19:18:20.125 [DEBUG] JUploadPanel: after !fileUploadThread.isAlive()

         
    • Etienne

      Etienne - 2008-03-12

      Hi,

      Here is my analysis on your trouble(s):

      1) As your server's php limit is 2mb you must set maxChunkSize to a maximum of 2000. Otherwise, you'll got errors when uploading files bigger than 2M

      2) About pictures being resized when you don't want:
      The picture is NOT resized, according to my words: the uplaoded picture has the same size. But the picture file is smaller (more compressed). This wording issue is the reason why I had some troubles to understand your problem. Here are the reasons of this:

      2a) Pictures should not be rescaled (number of pixels changed), if you put correct values to the maxNonTransformedPictureSize JUpload parameter. From the debug output you've given me, I guess you've put 4000 there, where your gallery max picture widht and height is 3000. Take care that this parameter is a number of pixels, like written on the config page, first or second line). You should let it empty.

      2b) I guess your real trouble comes from the pictureTransmitMetadata parameter. If set to false, default, the picture is transformed before upload. I currently don't know how to erase metadata without it. The result is:
      - If you didn't provide pictureTransmitMetadata, or set it to false: target picture is to be calculated before upload by the applet.
      - Picture is calculated using current config parameters. The main ones, at this step, are:
      * maxNonTransformedPictureSize
      * pictureCompressionQuality: 80%. This explains that the pictures file size is going down.

      Etienne

       
      • LeAnn Smith

        LeAnn Smith - 2008-03-13

        Thank you Etienne! Sorry for my vague use of the word "resize". Yes, I was referring to the file size, not the picture size. About the maxNonTransformedPictureSize param, I did not understand that this was the max "size" of the WIDTH AND HEIGHT until I looked in the code where it compares itself the the CPG config. Size, in this case, is vague as it could be the total pixel count of the photo.

        So, please confirm, is it truely the case that the quality of the photo will NOT be compromised if I allow the applet to remove the metadata and set pictureCompressionQuality to 1?
        Thank you so much!

         
    • Etienne

      Etienne - 2008-03-14

      Hi,

      The current behaviour, if you put pictureTransmitMetadata, si to force the calculating of the file to upload. Putting 1 into the pictureCompressionQuality config parameter will use the minimum jpeg compression, that is: the maximum quality.

      You'll have to test if quality is good enough for you.

      A possible extension, would be to make the internal code better, so that putting pictureTransmitMetadata to false doesn't imply recalculating picture, out of standard cases (rotation, too big picture...).

      It's not currently planned ... But it could be.

      Etienne

       

Log in to post a comment.