# Upload multiple images in database at once

**URL:** <https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844>\
**Category:** Ask the community\
**Tags:** code\
**Created:** [November 5, 2018, 2:45pm UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844 "2018-11-05T14:45:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tt759163](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tt759163/32/6889_2.png) [@tt759163](https://forum.wixstudio.com/u/tt759163)\
**Post date:** [November 5, 2018, 2:45pm UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844/1 "2018-11-05T14:45:51Z")

</div>

Hi, I have a serious problem. I have an online shop on WIX. I have about 10,000 products with images and description. I have an excel file of all the info. I want to select multiple images and upload them in wix database at once, I don not have enough time to upload images one by one. Please help me I need to get things ready ASAP.

---

<div class="post-metadata">

**Author:** ![felipevera](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/felipevera/32/7050_2.png) [@felipevera](https://forum.wixstudio.com/u/felipevera)\
**Post date:** [November 16, 2018, 8:29pm UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844/2 "2018-11-16T20:29:25Z")

</div>

I’m having the same problem. I have been searching for 2 consecutive days and can’t do it!

---

<div class="post-metadata">

**Author:** ![elizabethjhay](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@elizabethjhay](https://forum.wixstudio.com/u/elizabethjhay)\
**Post date:** [November 17, 2018, 3:48am UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844/3 "2018-11-17T03:48:22Z")

</div>

Same here. What is going on?

---

<div class="post-metadata">

**Author:** ![tomfrasered](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@tomfrasered](https://forum.wixstudio.com/u/tomfrasered)\
**Post date:** [September 5, 2019, 4:16am UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844/4 "2019-09-05T04:16:05Z")

</div>

Anyone discover a solution to this?

---

<div class="post-metadata">

**Author:** ![info84653](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/info84653/32/12509_2.png) [@info84653](https://forum.wixstudio.com/u/info84653)\
**Post date:** [September 11, 2019, 1:44am UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844/5 "2019-09-11T01:44:45Z")

</div>

Creating a site where users can sign up and there page has a gallery that I want to have them upload multiple pics and can’t find a way to do that

---

<div class="post-metadata">

**Author:** ![shamirza224](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/shamirza224/32/17296_2.png) [@shamirza224](https://forum.wixstudio.com/u/shamirza224)\
**Post date:** [February 16, 2020, 3:37pm UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844/6 "2020-02-16T15:37:23Z")

</div>

I really need this as well! I have over 2000 images in total that need to be added! Perhaps if we could simply select a broad range of images and have wix enter them into the database rows by alphabetical sort would be awesome!

---

<div class="post-metadata">

**Author:** ![acevedoaaron26](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@acevedoaaron26](https://forum.wixstudio.com/u/acevedoaaron26)\
**Post date:** [February 20, 2020, 9:14am UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844/7 "2020-02-20T09:14:14Z")

</div>

Include the database configuration file to connect and select the MySQL database.Get the file extension using pathinfo() function in PHP and check whether the user selects only the image files.Upload images to the server using move\_uploaded\_file() function in PHP [Prepaid Gift Balance](https://www.prepaidgiftbalance.vip/)

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/system/32/86885_2.png) [@system](https://forum.wixstudio.com/u/system)\
**Post date:** [February 21, 2020, 5:36am UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844/8 "2020-02-21T05:36:25Z")

</div>

The ability to upload multiple images is in development. Unfortunately Wix cannot commit to release dates, but know that it is in the works!

---

<div class="post-metadata">

**Author:** ![av-promotional](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/av-promotional/32/2796_2.png) [@av-promotional](https://forum.wixstudio.com/u/av-promotional)\
**Post date:** [February 21, 2020, 8:52am UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844/9 "2020-02-21T08:52:34Z")

</div>

That’s the solution I did. It works great, only in the database is for some reason presented in code form and not images. But this site works well.

```javascript
var workImages = [];
export async function uploadWork_change_1(event) {
let greenFlag = false;
let file = $w('#uploadWork').value;
if(file.length > 0){
let response = await $w('#uploadWork').startUpload($w('#uploadWork').buttonLabel = 'טוען ...');
greenFlag = response;
if(greenFlag){
workImages.push({
"src": response.url,
"description": "",
"title": file[0].name
});
greenFlag = false;
console.log(workImages, file[0].name);
$w('#uploadWork').buttonLabel = 'בחר תמונה נוספת'
// $w('#uploadedTxt').expand();
// $w('#uploadedTxt').text = `Done, Uploaded ${file[0].name}`;
}
}
}
export function button106_click(event) {
$w("#dataset1").setFieldValues( {
"galeri": workImages,
} );
$w("#dataset1").save();
//Add your code for this event here:
}

```

---

<div class="post-metadata">

**Author:** ![djc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/djc/32/87046_2.png) [@djc](https://forum.wixstudio.com/u/djc)\
**Post date:** [January 31, 2024, 2:56pm UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844/10 "2024-01-31T14:56:30Z")

</div>

Did you ever get an answer for making this happen?

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [January 31, 2024, 6:33pm UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844/11 "2024-01-31T18:33:03Z")

</div>

This solution was used in 2020 → we have 2024 already!

Do not folow to old posts → they will lead you to wrong or at least totaly outdated SOLUTIONS !!!

Instead open your own individual post and describe your issue in detail.

---

<div class="post-metadata">

**Author:** ![pamela](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pamela/32/80154_2.png) [@pamela](https://forum.wixstudio.com/u/pamela)\
**Post date:** [February 1, 2024, 8:13am UTC](https://forum.wixstudio.com/t/upload-multiple-images-in-database-at-once/14844/12 "2024-02-01T08:13:14Z")

</div>

@CODE-NINJA Absolutely agree with the importance of creating new and up-to-date posts! 🚀 Our forums underwent a merge, so the dates might be a bit tricky to follow.

@djc I understand that the solution shared in 2020 was valuable then, but if you still would like input from the community on this, feel free to open a new post!
