Web SDK
  • Home
  • Overview
  • Getting started
  • References
    • Authentication
    • Account
      • Users
    • Notifications
    • Bookmark
    • 2FA
    • Collection
    • Connection filters
    • Feed
    • File Upload
    • Invite
    • Messaging
    • Payment
    • Reviews
    • Search
    • Verification
      • Supported document type
      • List of expected ISO countries
    • Wallet
      • Withdrawal
  • Tutorial
  • Web API
Powered by GitBook
On this page
  1. References

File Upload

With the PAKT SDK, users can:

  • Upload a file, Users can upload the following file extensions

  • Video files with extensions, .mp4, .mkv

  • Music files with extension, .mp3, .wma, .oog, .mpeg

  • Image files with extension, .png, .jpg, jpeg, .svg

  • Document files with extension, .pdf, .doc, .docx, .xls, xlsx, .ppt, .csv.

Upload Model

interface IUploadDto {
  name: string;
  uploaded_by: UploadedUser | string;
  url: string;
  meta: Record<string, any> | undefined;
  status: boolean;
  deletedAt: Date;
}

To upload a file:

export const upload = async (file: Object) => {
  const upload: IUploadDto = await sdkInit.file.fileUpload({
    file: Object,
  });
};

PreviousFeedNextInvite

Last updated 10 months ago