diff --git a/.env.example b/.env.example index d2af98c..cde30dd 100644 --- a/.env.example +++ b/.env.example @@ -18,6 +18,6 @@ WEB_HOOK_URI=https://accords-library.com/some/path SFTP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nxxxxxxxxxx..." SFTP_USERNAME=someuser -SFTP_HOST=ftp.host.com +SFTP_HOST=host.com SFTP_DESTINATION_PATH_ROOT="/absolute/path/to/destination/root/folder" -SFTP_BASE_URL=https://ftp-base-url.com \ No newline at end of file +SFTP_BASE_URL=https://base-url.com \ No newline at end of file diff --git a/src/collections/VideosSubtitles/VideosSubtitles.ts b/src/collections/VideosSubtitles/VideosSubtitles.ts index 70a805d..4f7ce9c 100644 --- a/src/collections/VideosSubtitles/VideosSubtitles.ts +++ b/src/collections/VideosSubtitles/VideosSubtitles.ts @@ -7,8 +7,8 @@ export const VideosSubtitles = buildCollectionConfig({ labels: { singular: "Video Subtitle", plural: "Videos Subtitles" }, admin: { group: CollectionGroups.Media, disableDuplicate: true, hidden: shownOnlyToAdmin }, upload: { - staticDir: `../uploads/${Collections.VideosSubtitles}`, mimeTypes: ["text/*"], + disableLocalStorage: true, }, timestamps: false, fields: [], diff --git a/src/payload.config.ts b/src/payload.config.ts index 2ec318b..09fa68d 100644 --- a/src/payload.config.ts +++ b/src/payload.config.ts @@ -95,6 +95,11 @@ export default buildConfig({ disableLocalStorage: true, disablePayloadAccessControl: true, }, + [Collections.VideosSubtitles]: { + adapter: configuredFtpAdapter, + disableLocalStorage: true, + disablePayloadAccessControl: true, + }, [Collections.Audios]: { adapter: configuredFtpAdapter, disableLocalStorage: true,