{"id":7600,"date":"2022-03-25T16:25:25","date_gmt":"2022-03-25T16:25:25","guid":{"rendered":"https:\/\/wiki.pontiac.media\/?docs=new-test-section\/creatives\/html5-upload-error"},"modified":"2022-03-25T16:44:39","modified_gmt":"2022-03-25T16:44:39","slug":"html5-upload-error","status":"publish","type":"docs","link":"https:\/\/wiki.pontiac.media\/?docs=new-test-section\/creatives\/creative-upload\/html5-upload-error","title":{"rendered":"HTML5 Upload Error"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wiki.pontiac.media\/wp-content\/uploads\/2022\/03\/image-21.png\" alt=\"\" class=\"wp-image-7601\" width=\"581\" height=\"271\" srcset=\"https:\/\/wiki.pontiac.media\/wp-content\/uploads\/2022\/03\/image-21.png 805w, https:\/\/wiki.pontiac.media\/wp-content\/uploads\/2022\/03\/image-21-300x140.png 300w, https:\/\/wiki.pontiac.media\/wp-content\/uploads\/2022\/03\/image-21-768x359.png 768w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><\/figure>\n\n\n\n<p>\u201cZip package must contain single html file named index.html which must reside in the root of the zip file and not in a subfolder. Index.html should be a complete and valid HTML document including the entities &lt;html&gt;&lt;head&gt;&lt;body&gt;) and not an HTML fragment. All external resources must be secure (https)\u201d<\/p>\n\n\n\n<p>If you are receiving the above error when uploading an HTML5 creative, it may be due to one of the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>The index.html file is in a folder inside your zip folder. This file must be in the root of the zip file and not a subfolder. In which case you should extract the necessary files from the folder and re-zip them so that they reside in the root of the zip folder.<\/li><li>The html file is not named \u2018index.html\u2019. In which case you should rename this file, then re-try the upload.<\/li><li>The folder was zipped using a Mac and there are hidden files (.DS_store files and _MACOSX folder) within the zip folder that are causing the upload to fail. There are two ways to resolve\/prevent this:<ul><li>Use the the zip command in the Mac Terminal to compress the assets, instead of the Mac &#8216;compress&#8217; function, for example:<ul><li>zip -r -X html5_300x250.zip html5_300x250<\/li><\/ul><\/li><li>You can still use the Mac &#8216;compress&#8217; function, as long as you do not open the new zip folder before uploading it to Pontiac. These hidden files are only added when you open the folder and browse the content.<\/li><\/ul><\/li><\/ol>\n","protected":false},"author":6,"featured_media":0,"parent":2605,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-7600","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/7600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7600"}],"version-history":[{"count":2,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/7600\/revisions"}],"predecessor-version":[{"id":7604,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/7600\/revisions\/7604"}],"up":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/2605"}],"prev":[{"title":"Pixeling Creatives","link":"https:\/\/wiki.pontiac.media\/?docs=new-test-section\/creatives\/creative-upload\/pixeling-creatives","href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/6783"}],"wp:attachment":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7600"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=7600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}