Issues uploading files

I’m working on a simple panel extension. I have a zip that was successfully uploaded that I did simply as a test. It worked, so I continued on the extension to finish it. Now I can’t seem to upload a new zip file. I get “Unexpected error, please try again.”.

Things I’ve tried:

  • Logging out and back in
  • Deleting the zip and remaking the zip
  • Waiting until the next day

Things I’ve verified:

  • zip file does not contain spaces or special characters
  • the contents of the zip file include: images folder, index.html, script.js, styles.css
  • There are no executables or outside calls, everything is housed within
  • new zip file is 3.15 MB
  • I’m in Local Test mode

Again, it worked two days ago, and then I progressed on it and tried it yesterday and today but met with the same error. Is there something obvious that I’m missing? Thank you!

Does one of the images contain a space in the file name?

Ofteh the problem here is when a font file is in the zip as they commonly have spaces in the name but I suspoect the issue is one of the images, having a space in the name

Barry,

I just finished going through all of my images and subfolders, none of them have spaces in them. I also don’t have any font files in this zip file.

Side note: I just realized that my initial test that worked, the images were .png as I converted them. Shortly after that, I realized that leaving them in the .webp format I got them in also worked on my local computer. Would a .webp file cause this issue?

Are you sure that the version is actually in local test, depending how you load the dev console the UI has a bug where it lies about which state is in.

ALso just moving it to hosted test, back to local might kick if it something is stuck somewhere

webp’s are/should be fine.

it’s just the “name of the file” that is a issue and so far only if it’s a space.

Barry,

I hard refreshed, logged out and back in, moved from Local to Hosted back to Local, and it still shows in Local test.

Is everything else for the version correctly set (on any tab)? In case theres a super weird like under asset hosting theres no selected views or something odd, and/or something blank that should be populated?

(I spot tested a random version with the last extension bundle I built and the upload completed as expected)

It looks like everything is set. Everything that has an asterisk is filled in, minus the Discovery Image and Screenshot Image, as I need to make those yet. Under Asset Hosting, I deselected Panel and reselected it and the Panel Viewer Path is set to index.html.

I zipped ONLY my html, css, and script files and uploaded those and it worked. So it’s something with my images folder. The tree looks like:
images
→ SubfolderName (no spaces)
→ → imageName.webp (no spaces)

Is this subfolder design an issue?

I figured it out. I zipped my subfolders individually and uploaded them until I found one that didn’t work. It was an image that had a space in it…Even though I double checked, I still missed one. I appreciate your time!

Good to hear! glad it was sorted!