Spaces:
Running
Running
Commit
·
a19a5e8
1
Parent(s):
80c498a
Update storage location
Browse files- index.html +1 -2
- storage.json +2 -2
index.html
CHANGED
|
@@ -59,7 +59,7 @@
|
|
| 59 |
}
|
| 60 |
|
| 61 |
const file = fileInput.files[0];
|
| 62 |
-
const apiUrl = "https://
|
| 63 |
const uploadUrl = apiUrl + encodeURIComponent(file.name);
|
| 64 |
statusMessage.textContent = 'Uploading...';
|
| 65 |
|
|
@@ -68,7 +68,6 @@
|
|
| 68 |
method: 'PUT',
|
| 69 |
body: file,
|
| 70 |
headers: {
|
| 71 |
-
'Authorization': 'Bearer YOUR_ORACLE_CLOUD_API_TOKEN',
|
| 72 |
'Content-Type': file.type,
|
| 73 |
},
|
| 74 |
});
|
|
|
|
| 59 |
}
|
| 60 |
|
| 61 |
const file = fileInput.files[0];
|
| 62 |
+
const apiUrl = "https://public.semibit.in/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzZW1pYml0IiwiaWF0IjoxNzQ5MDQ5NTg5LCJleHAiOjIwOTYyMDQ3ODksImF1ZCI6Ind3dy5zZW1pYml0LmluIiwic3ViIjoiYWRtaW5Ac2VtaWJpdC5pbiIsImlkIjoiMTJhMzdlODRkZCIsIm5hbWUiOiJzZW1pYml0IiwiZW1haWwiOiJhZG1pbkBzZW1pYml0LmluIiwiYXZhdGFyIjoiaHR0cHM6Ly93d3cuc2VtaWJpdC5pbi9sb2dvLnBuZyIsInBhdGgiOiJeKC90ZW1wKS9zZW1pYml0LW1lZGlhLy4qIiwic2NvcGUiOiJyZWFkLHdyaXRlIn0.dRIcmPxPBwaoOnZs0E6W-ftF-4ki-rdV1EUdrnu5Shw/temp/";
|
| 63 |
const uploadUrl = apiUrl + encodeURIComponent(file.name);
|
| 64 |
statusMessage.textContent = 'Uploading...';
|
| 65 |
|
|
|
|
| 68 |
method: 'PUT',
|
| 69 |
body: file,
|
| 70 |
headers: {
|
|
|
|
| 71 |
'Content-Type': file.type,
|
| 72 |
},
|
| 73 |
});
|
storage.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"semibit_media": {
|
| 3 |
-
"url": "https://
|
| 4 |
-
"url_v2": "https://
|
| 5 |
}
|
| 6 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"semibit_media": {
|
| 3 |
+
"url": "https://public.semibit.in/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzZW1pYml0IiwiaWF0IjoxNzQ5MDQ5NTg5LCJleHAiOjIwOTYyMDQ3ODksImF1ZCI6Ind3dy5zZW1pYml0LmluIiwic3ViIjoiYWRtaW5Ac2VtaWJpdC5pbiIsImlkIjoiMTJhMzdlODRkZCIsIm5hbWUiOiJzZW1pYml0IiwiZW1haWwiOiJhZG1pbkBzZW1pYml0LmluIiwiYXZhdGFyIjoiaHR0cHM6Ly93d3cuc2VtaWJpdC5pbi9sb2dvLnBuZyIsInBhdGgiOiJeKC90ZW1wKS9zZW1pYml0LW1lZGlhLy4qIiwic2NvcGUiOiJyZWFkLHdyaXRlIn0.dRIcmPxPBwaoOnZs0E6W-ftF-4ki-rdV1EUdrnu5Shw/temp/",
|
| 4 |
+
"url_v2": "https://public.semibit.in/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzZW1pYml0IiwiaWF0IjoxNzQ5MDQ5NTg5LCJleHAiOjIwOTYyMDQ3ODksImF1ZCI6Ind3dy5zZW1pYml0LmluIiwic3ViIjoiYWRtaW5Ac2VtaWJpdC5pbiIsImlkIjoiMTJhMzdlODRkZCIsIm5hbWUiOiJzZW1pYml0IiwiZW1haWwiOiJhZG1pbkBzZW1pYml0LmluIiwiYXZhdGFyIjoiaHR0cHM6Ly93d3cuc2VtaWJpdC5pbi9sb2dvLnBuZyIsInBhdGgiOiJeKC90ZW1wKS9zZW1pYml0LW1lZGlhLy4qIiwic2NvcGUiOiJyZWFkLHdyaXRlIn0.dRIcmPxPBwaoOnZs0E6W-ftF-4ki-rdV1EUdrnu5Shw/temp/"
|
| 5 |
}
|
| 6 |
}
|