.zip file problems

PennController for IBEX Forums Support .zip file problems

This topic contains 37 replies, has 6 voices, and was last updated by Avatar mg5171 1 week, 6 days ago.

Viewing 8 posts - 31 through 38 (of 38 total)
  • Author
    Posts
  • #4945
    Avatar
    Elise
    Participant

    Okay, than AWS seems to be a good choice:)

    Something has changed now: After the dashed sentence, loading takes place (with the original preloading sentence, my moving object is missing) and the page is displayed- just the picture that should be loaded from the zip file is missing.

    I will try out different things the next days and hopefully just my IP address has been flagged.
    Thanks for all your help today!

    Elise

    #4946
    Jeremy
    Jeremy
    Keymaster

    Yes, what you see is a good sign: it means that the script works as intended and does not crash when your request for the image fails

    My guess is that the moving object is missing because your request to your bucket is processed very quickly but, instead of returning the zip file, it returns an error-like object (hence the non-display of your image upon running the trial)

    In the meantime, if you don’t have too many images and the files are not too big, feel free to upload them to the PCIbex Farm (the Potsdam-experiments account currently only uses about 4.5MB out of the new 64MB limit)

    Jeremy

    #4947
    Avatar
    Elise
    Participant

    Thanks, Jeremy!

    I have nearly 80 pictures, but I will have a look they don’t exceed the limit.

    Best,
    Elise

    #6772
    Avatar
    mg5171
    Participant

    Hi,
    I’m having trouble with CORS access–the warnings from Chrome are clear. I use DreamHost and have the .htaccess file uploaded in the same folder as the zip file. I can download the zip file by using the direct address. However, the .htaccess file appears in the DreamHost platform, but not when I try to access the folder directly (https://www.maddiegilbert.com/abxziptest/), the .htaccess file does not appear in the list of files. Any idea why? (I realize this is not strictly a PCIbex problem). I suspect this may be why PCIbex is having trouble accessing the folder.
    Thanks!

    #6773
    Jeremy
    Jeremy
    Keymaster

    Hi,

    The .htaccess file is not supposed to be publicly visible, so it’s a good sign that you can only access it when you’re logged in onto DreamHost. I get no error message when I preload your zip file in a project on farm.pcibex.net: the Log tab of the Debug window confirms that the download is successfull (“[14:15:16] Download of https://www.maddiegilbert.com/abxziptest/abx_zipped.zip complete (PennController: 0)”)

    Jeremy

    #6776
    Avatar
    mg5171
    Participant

    Right, so I suppose then the question is why my .htaccess file is not working. Did something change with the new version of PCIbex? I’ve used Zip files before, and it’s usually worked. I suppose the issue is either with that file or with DreamHost. Here’s the link to the experiment (https://farm.pcibex.net/r/vhmYyZ/), and these are the errors I get:

    Access to XMLHttpRequest at ‘https://maddiegilbert.com/abxziptest/abx_zipped.zip’ from origin ‘https://farm.pcibex.net’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
    PennController.js:65

    Uncaught Error: InvalidStateError: Failed to read the ‘responseText’ property from ‘XMLHttpRequest’: The value is only accessible if the object’s ‘responseType’ is ” or ‘text’ (was ‘arraybuffer’).
    at XMLHttpRequest.n.onreadystatechange (PennController.js:65)

    #6777
    Jeremy
    Jeremy
    Keymaster

    Hi,

    This is because you are trying to load https://maddiegilbert.com/abxziptest/abx_zipped.zip when you should load https://www.maddiegilbert.com/abxziptest/abx_zipped.zip

    Not sure why the policy does not transfer to the subdomain-prefix-less URL though

    Jeremy

    #6778
    Avatar
    mg5171
    Participant

    Wow, that’s an easy fix. Thanks for that tip; you saved me hours more frustration! I was using basically the same code as with the old version of PCIbex, so I wonder if that changed in this new version.

Viewing 8 posts - 31 through 38 (of 38 total)

You must be logged in to reply to this topic.