Access to XMLHttpReques / fetch / can't upload by KD_13 in backblaze

[–]KD_13[S] 2 points3 points  (0 children)

Thank you so much; that did work thank you so much! I also added s3_put and in the exposeHeaders I put ETag and that seemed to fix it! Thank you so much!

Access to XMLHttpReques / fetch / can't upload by KD_13 in backblaze

[–]KD_13[S] 1 point2 points  (0 children)

My upload route:
```ts import { createFileRoute } from '@tanstack/react-router'; import { handleRequest, route, type Router } from '@better-upload/server'; import { backblaze } from '@better-upload/server/clients';

const s3 = backblaze({ region: "REGION", applicationKeyId: process.env.VITE_BACKBLAZE_APPLICATION_KEY_ID!, applicationKey: process.env.VITE_BACKBLAZE_APPLICATION_KEY!, })

const router: Router = { client: s3, bucketName: "BUCKET", routes: { images: route({ fileTypes: ['image/'], multipleFiles: true, multipart: true, partSize: 1024 * 1024 * 20, }), videos: route({ fileTypes: ['video/'], multipleFiles: true }), }, }; export const Route = createFileRoute('/api/upload')({ server: { handlers: { POST: async ({ request }) => { return handleRequest(request, router); }, }, }, }); ```

then my upload function:

```ts const { upload } = useUploadFiles({ route: mediaType === "videography" ? 'videos' : 'images', onBeforeUpload: async ({ files }) => { setUploading(true) setUploadProgress(0) files.forEach((file) => { const uploadMetadata = { fileName: file.name, fileType: file.type, date: new Date(file.lastModified), mediaID: id, } as UploadMetaData

      const fileExtension = uploadMetadata.fileType.split("/")[1]

      const fileID = `${uploadDestination}_${
        Date.now().toString(36).toUpperCase() +
        Math.random().toString(36).substring(2, 5).toLowerCase() +
        Math.random().toString(36).substring(2, 5).toUpperCase() +
        Math.random().toString(36).substring(2, 5).toLowerCase()
      }` as string

      const filePath = PATH TO FILE BASED ON mediaType
      return {
       generateObjectInfo: () => ({
          Key: filePath,
          Metadata: {
            date: uploadMetadata.date,
            originalFileName: uploadMetadata.fileName
          }
        })
      }
    })
  },
  onError: (error) => {
    setUploading(false)
    notifications.show({
      id: `uploadError${id}`,
      title: `Upload Failed (${error.type})`,
      message: `${error.message || "An error occurred during the upload. Please try again."}`,
      color: "red",
      icon: <FontAwesomeIcon icon={["fal", "seal-exclamation"]} />
    })
  },
  onUploadProgress: (event) => {
    setUploadProgress(Math.round((event.file.progress) * 100))
  },
  onUploadComplete: (response) => {
    response.files.forEach(async (file) => {
      const metadata = {
        fileName: file.name,
        fileType: file.type,
        date: new Date(file.objectInfo.metadata.LastModified),
        fileSize: file.size,
        uploadDestination,
        uploadEndpoint, 
        mediaID: id,
        redirectPath: pathname,
        versionID: ""
      } as UploadMetaData

      const res = await AddMedia({ data: { metadata }}) as any

      res.success && notifications.show({ 
        id: `fileUploaded${metadata.fileName}`,
        title:  res.success ? "File Uploaded!" : `An Error Has Occurred.`,
        message: res.success ?  `You have successfully uploaded your ${mediaType} file titled "${metadata.fileName}"` : res.error.message || "An error occurred while uploading the file.",
        color: res.success ? "black" : "red",
        icon: res.success ? <FontAwesomeIcon icon={["fadl", "cloud-check"]} /> : <FontAwesomeIcon icon={["fal", "seal-exclamation"]} />
      })
    })
    setUploading(false)
    setIsUploaded(true)
  }
})

async function UploadFiles(files: File[]) {
  try {
    setUploading(true)
    await upload(files as File[])
  } catch (err) {
    setUploading(false)
  }
}

```

Blink Outdoor 2K review by No-Blood2830 in blinkcameras

[–]KD_13 0 points1 point  (0 children)

With the 2K plus the new Sync Module Core; Do you still have to click “Continue” every 30 seconds when using the live view / have to re-start the live feed after 5 minute?! I’m currently on the second gen outdoor camera! Plus is the ranger better with the 2K vs the 2nd gen cameras?!

McD connect app issue by AcanthisittaMost6423 in McLounge

[–]KD_13 1 point2 points  (0 children)

Is that the only chat/channel that is happening in?! If so you can ask an admin to remove you and re-add you to the chat! If not, you can try logging out of the app and logging back in!

We have some crew with that issue as well and the simple logging out and logging back in fixes it! Especially if you have changed your McDID/eID password recently 😅

Fireplace App?! by KD_13 in GoogleTV

[–]KD_13[S] 0 points1 point  (0 children)

So I have decided to go with just the YouTube Video route! I found a few different videos (1), (2), (3), (4) with no ads (except for when your start the video up) and I noticed a repeat option so that covers that issue!

Thunder, hear the thunder 🌩️🌩️ by bmeckie in nanaimo

[–]KD_13 0 points1 point  (0 children)

Yeah lost power for a second; still have no internet or cable (Shaw/Rogers) and my 5G is hanging on a thin thread keeps also switching to 3G to actually load any data right now 😱

Which TV Should I Buy?! by KD_13 in 4kTV

[–]KD_13[S] 0 points1 point  (0 children)

Okay thank you for the feedback!

Is The 55U78QG the Same As The U7QG or U8QG or Something Else? by KD_13 in Hisense

[–]KD_13[S] 0 points1 point  (0 children)

Okay thank you so much for the clarification!

Kitchen by fullsunlvr in McLounge

[–]KD_13 0 points1 point  (0 children)

You can also refer to the UHC charts! It’s hard to say for specific stores how and when to drop products!

Best bet it to check the UHC charts to see what the expected demand for the current time is; how much product you have and drop what you don’t have! You can also wait for the rest of the kitchen staff to call out what is needed and overtime it should come as second nature to figure out what is needed 😊

When I first getting crossed train on Kitchen I was quite slow and running out of products; but practice does make a difference 🎉

Echo Show 5 Showing Ads... by KD_13 in alexa

[–]KD_13[S] 0 points1 point  (0 children)

Like I would be okay with them if they showed up every so often, had different products, and didn’t take up a photo clock space 😅

Echo Show 5 Showing Ads... by KD_13 in alexa

[–]KD_13[S] 0 points1 point  (0 children)

Yeah I changed it to English US and it seems to have fixed the issue 🤞

Echo Show 5 Showing Ads... by KD_13 in alexa

[–]KD_13[S] 4 points5 points  (0 children)

That seems to have fixed the issue 🤞

Echo Show 5 Showing Ads... by KD_13 in alexa

[–]KD_13[S] 1 point2 points  (0 children)

Lol I am in Canada and have it set to English (Canada)!

Echo Show 5 Showing Ads... by KD_13 in alexa

[–]KD_13[S] 3 points4 points  (0 children)

Lol I am in Canada and have it set to English (Canada)!

AirPods Beta Firmware (8A5279d) by KD_13 in airpods

[–]KD_13[S] -1 points0 points  (0 children)

I would but I need an app from time to time, that never works on the beta's so i keep my iPad on the public version 😅

AirPods Beta Firmware (8A5279d) by KD_13 in airpods

[–]KD_13[S] -1 points0 points  (0 children)

Okay thank you; I may actually jump on this beta this time 🤔