hi,
I'm trying to upload an Arduino Sketch to the Arduino cloud web editor. the sketch is in a .zip file containing .ino, .cpp and .h files.
when i try, i get and error:
Error while importing files
file name : Unexpected error. Please try again.
or the error:
file name: No sketches or libraries found in the ZIP file.
the unexpected error occurs if the zip contains a .ino file with the same name as the zip.
the no sketchs found error occurs in all other cases i've tried.
even when i try to import a zip created by downloading a sketch from the web editor.
i'm working on Win11. I've tried chrome and edge, both returned the same errors.
both work fine with single files
im trying to add an arduino sketch to the arduino cloud web editor.
the zip files are good. they can be opened and edited. i've tried using zip files created by the arduino web editor itself by downloading a working sketch in .zip format and then trying to upload it.
Those errors are involved in library installs from a zip file. That is not what you are wanting to do. Youj said later you are just imnpoorting an ino file to the cloud editor. Just do that manually like any normal ino file. do NOT use Include Library/Ad .Zip file
Can't you just access the cloud on the other device that you are using and just copy and paste there? Or just write the code onto the (Edit: sketch) manually.
i have large projects with multiple files (.ino,.cpp,.h... ect)
after failing to upload a zip with them i tried some simple stuff.
like i said i can import each file manually, but not as a zip.
even the simplest zip with the blink sketch or one created on the editor and downloaded fail to up load Untitled_nov05a.zip (4.2 KB)
I don't understand what you are doing. Until you can clearly demonstrate what you are trying to do and why it doesn't work I can't help. I think you are the cause of your own problem. Sorry about the language problem, perhaps you would do better using your native tongue as the forum has native support for French,Spanish and one or more others.
What I saw the first time I peeked at that procedure was the requirement to zip all the libraries, but a more in-depth reading shows me that it actually says nothing needs to be done with the libraries, they are already accessible. This procedure must be very old as the moving of files/projects back and forth are handled by the IDE etc see pics.
in this next picture you can see the "import files" dialog after pressing "import local files".
you can clearly read in English where it say,
"You can also import your whole Sketchbook.
Compress the Sketch folder in .zip format. Keep libraries in a 'libraries' folder. Avoid mixing sketches and libraries."
That is the procedure I do NOT use, just use the IDE and Cloud Editor upload/download controls. I have used them with no problems. The procedure you are using appears flawed, you should report a bug.
Sorry about the English remark, but that is what I observed.