Skip to content

fix(ui): bulk upload issues #13413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function FormsManagerProvider({ children }: FormsManagerProps) {
const initialStateRef = React.useRef<FormState>(null)
const getFormDataRef = React.useRef<() => Data>(() => ({}))

const actionURL = `${api}/${collectionSlug}`
const actionURL = `${serverURL}${api}/${collectionSlug}`

const initializeSharedDocPermissions = React.useCallback(async () => {
const params = {
Expand Down Expand Up @@ -301,6 +301,7 @@ export function FormsManagerProvider({ children }: FormsManagerProps) {
collectionSlug,
getUploadHandler({ collectionSlug }),
),
credentials: 'include',
method: 'POST',
})

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { FormState, UploadEdits } from 'payload'

import { v4 as uuidv4 } from 'uuid'

export type State = {
activeIndex: number
forms: {
Expand Down Expand Up @@ -50,7 +52,7 @@ export function formsManagementReducer(state: State, action: Action): State {
for (let i = 0; i < action.files.length; i++) {
newForms[i] = {
errorCount: 0,
formID: crypto.randomUUID(),
formID: crypto.randomUUID ? crypto.randomUUID() : uuidv4(),
formState: {
...(action.initialState || {}),
file: {
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/elements/Table/OrderableTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ export const OrderableTable: React.FC<Props> = ({
target,
}

const response = await fetch(`${config.routes.api}/reorder`, {
const response = await fetch(`${config.serverURL}${config.routes.api}/reorder`, {
body: JSON.stringify(jsonBody),
credentials: 'include',
headers: {
'Content-Type': 'application/json',
},
Expand Down
Loading