diff --git a/portal/setup-wizard.html b/portal/setup-wizard.html
index 4592f07..4b45044 100644
--- a/portal/setup-wizard.html
+++ b/portal/setup-wizard.html
@@ -1508,9 +1508,22 @@
// Remove loading message and start conversation flow
document.getElementById('conversation').innerHTML = '';
- // Check if any items have imageUrl - if so, offer image upload matching
+ // Check if items have imageUrl - skip upload step if they're remote URLs (will be downloaded by saveWizard)
const itemsWithImages = (config.extractedData.items || []).filter(item => item.imageUrl).length;
- if (itemsWithImages > 0) {
+ const itemsWithRemoteImages = (config.extractedData.items || []).filter(item =>
+ item.imageUrl && (item.imageUrl.startsWith('http://') || item.imageUrl.startsWith('https://'))
+ ).length;
+
+ if (itemsWithRemoteImages > 0) {
+ // Items have remote image URLs - saveWizard will download them, skip upload step
+ console.log(`${itemsWithRemoteImages} items have remote image URLs - skipping upload step`);
+ if (config.businessId && config.menuId) {
+ showCategoriesStep();
+ } else {
+ showBusinessInfoStep();
+ }
+ } else if (itemsWithImages > 0) {
+ // Items have local image refs (Menu_files/) - show upload step
showImageMatchingStep();
} else if (config.businessId && config.menuId) {
// In add-menu mode, skip business info and header