You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the library to upload, store, get or delete files from/to Uploadcare.com
UUID="some-uuid-that-you've-got-from-post-data-for-example",
File_data=uploadcare:info(UUID), %% Just get a JSON data for the fileFile_data2=uploadcare:store(UUID), %% Store the fileFile_data3=uploadcare:delete(UUID). %% Delete the file
File uploading could be implemented in 2 steps:
%% Send upload request and get tokenToken=uploadcare:upload_url("http://learnyousomeerlang.com/static/img/erlang-the-movie.png"),
%% And check upload status for the tokenStatus=uploadcare:upload_status(Token), %% Result is a JSON where UUID of uploaded file could be found