Wix Media Platform is a collection of services for storing, serving, uploading, and managing media files and any files in general
npm install media-platform-js-sdk --save
git clone firstname.lastname@example.org:wix/media-platform-js-sdk.gitnpm installnpm start
and open http://localhost:3333/ in the browser
First, if you haven't done so yet, register at Wix Media Platform, create your organization, project and application.
var MediaPlatform = MediaPlatform;var mediaPlatform =domain: '<As appears in the application page>'appId: '<As appears in the application page>'sharedSecret: '<As appears in the application page>';
Authentication URL Node.js (with express) example:
/*** Your own authentication mechanism comes here*/app;
var UploadFileRequest = fileUploadFileRequest;/*** Only required for streams and buffers*/var uploadRequest = ;mediaPlatform;
The SDK provides a programmatic facility to generate image URLs
var Image = Image;/*** The Image constructor accepts a FileDescriptor, FileMetadata or URL*/var image = fileDescriptor;var url = imageurl;
Wix Media Platform exposes a comprehensive set of APIs tailored for the management of previously uploaded files.
var fileManager = mediaPlatformfileManager;
List files in a directory
var ListFilesRequest = fileListFilesRequest;var listFilesRequest =;fileManager;
Get file metadata (by id)
Please use the issue tracker to report issues related to this library, or to the Wix Media Platform API in general.
We use a custom license, see LICENSE.md.
Wix.com is a leading cloud-based web development platform with more than 100 million registered users worldwide. Our powerful technology makes it simple for everyone to create a beautiful website and grow their business online.
Google Cloud Platform enables developers to build, test and deploy applications on Google’s reliable infrastructure. It offers computing, storage and application services for web, mobile and backend solutions.