Skip to content
Snippets Groups Projects
Commit 41e712b4 authored by Jose Manuel Serrano Amaut's avatar Jose Manuel Serrano Amaut
Browse files

[REF]: Change destination from local to remote

parent 25268bf7
Branches
No related tags found
No related merge requests found
...@@ -27,10 +27,10 @@ const FileMosaicImageVideoPreviews: React.FC< ...@@ -27,10 +27,10 @@ const FileMosaicImageVideoPreviews: React.FC<
const handleWatch = (videoSource: File | string | undefined) => { const handleWatch = (videoSource: File | string | undefined) => {
console.log( console.log(
"handleWatch videoSource", "handleWatch videoSource",
"https://www.w3schools.com/tags/movie.mp4" "https://files-ui-temp-storage.s3.amazonaws.com/2029385a4ed32ff10beeb94c0585e8ac1a8c377c68d22ef25ce5863694a5499e.mp4"
); );
//setVideoSrc(videoSource); //setVideoSrc(videoSource);
setVideoSrc("https://www.w3schools.com/tags/movie.mp4"); setVideoSrc("https://files-ui-temp-storage.s3.amazonaws.com/2029385a4ed32ff10beeb94c0585e8ac1a8c377c68d22ef25ce5863694a5499e.mp4");
}; };
return ( return (
...@@ -101,8 +101,8 @@ const files: ExtFile[] = [ ...@@ -101,8 +101,8 @@ const files: ExtFile[] = [
name: "video-preview.mp4", name: "video-preview.mp4",
type: "video/mp4", type: "video/mp4",
size: 282000, size: 282000,
downloadUrl:
downloadUrl: "https://www.w3schools.com/tags/movie.mp4", "https://files-ui-temp-storage.s3.amazonaws.com/2029385a4ed32ff10beeb94c0585e8ac1a8c377c68d22ef25ce5863694a5499e.mp4",
}, },
{ {
id: 3, id: 3,
......
...@@ -33,7 +33,7 @@ export default function AdvancedDropzoneDemo() { ...@@ -33,7 +33,7 @@ export default function AdvancedDropzoneDemo() {
async function checkFiles() { async function checkFiles() {
try { try {
const res = await axios.get( const res = await axios.get(
LOCAL + REMOTE +
"/file" "/file"
); );
console.log("checkFiles", res); console.log("checkFiles", res);
...@@ -55,7 +55,7 @@ export default function AdvancedDropzoneDemo() { ...@@ -55,7 +55,7 @@ export default function AdvancedDropzoneDemo() {
uploadConfig={{ uploadConfig={{
/* autoUpload: true */ /* autoUpload: true */
method: "POST", method: "POST",
url: LOCAL + "/file/28048465460", url: REMOTE + "/file/28048465460",
//url: "http://localhost:2800/file/28048465460", //url: "http://localhost:2800/file/28048465460",
cleanOnUpload: true, cleanOnUpload: true,
}} }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment