diff --git a/samples/index.js b/samples/index.js index 8f5cfc8..553e902 100644 --- a/samples/index.js +++ b/samples/index.js @@ -738,7 +738,6 @@ async function prefetchDataURLs(items) { async function addPhoto(url, filename) { const storeLocation = getCurrentPath() + filename; const data = { - fileName: filename, originURL: url, destinationURL: storeLocation }; @@ -864,13 +863,10 @@ async function removeAccessFrom(webID) { }); } -async function copyPhoto(storeLocation) { - if (!storeLocation.endsWith('/')) { - storeLocation += '/'; - } +async function copyPhoto(destinationURL) { const data = { - fetchFileURL: getCurrentPath(), - storeLocation: storeLocation + originURL: getCurrentPath(), + destinationURL: destinationURL }; fetch(`${getPicoURL()}1556/sample_app/copy_file`, { method: 'POST',