golden-logic-ui 1.0.387 → 1.0.389
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/golden-logic-ui.js
CHANGED
|
@@ -188,7 +188,7 @@ const $j = /* @__PURE__ */ qr(Lq, [["render", jq]]), Dj = Oq({
|
|
|
188
188
|
return new Promise((ie, te) => {
|
|
189
189
|
O || ie();
|
|
190
190
|
const _e = new FormData();
|
|
191
|
-
_e.append(
|
|
191
|
+
_e.append(this.field_name, O), _e.append("accepts_file_types", this.accepts_file_types), _e.append("max_file_size", this.max_file_size), _e.append("field_name", this.field_name), Object.entries(this.file_config).forEach(([ae, j]) => {
|
|
192
192
|
_e.append(ae, j);
|
|
193
193
|
}), this.files.push({ file_name: O.name, loading: 0 }), axios.post(this.route_url + "/media", _e, {
|
|
194
194
|
onUploadProgress: (ae) => {
|
|
@@ -209,7 +209,7 @@ const $j = /* @__PURE__ */ qr(Lq, [["render", jq]]), Dj = Oq({
|
|
|
209
209
|
}).catch((ae) => {
|
|
210
210
|
ae.response.status === 422 ? this.error_message_data = this.getFirstError(
|
|
211
211
|
ae.response.data.errors,
|
|
212
|
-
|
|
212
|
+
this.field_name
|
|
213
213
|
) : console.error("An error occurred:", ae);
|
|
214
214
|
let j = this.files.findIndex(
|
|
215
215
|
(Ae) => Ae.file_name === O.name
|