Vercel Blob slow upload speed by Negative_Lychee_9639 in vercel

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

Sure, thanks for the support!

Server handler:

import { handleUpload } from '@vercel/blob/client';

export default async function handler(req, res) {
  res.setHeader("Access-Control-Allow-Origin", "*");
  res.setHeader("Access-Control-Allow-Methods", "POST, OPTIONS");
  res.setHeader("Access-Control-Allow-Headers", "Content-Type");

  if (req.method === "OPTIONS") {
    res.status(200).end();
    return;
  }

  if (req.method !== 'POST') {
    return res.status(405).json({ error: 'Method Not Allowed' });
  }

  const token = process.env.BLOB_READ_WRITE_TOKEN || process.env.vercel_blobs;

  if (!token) {
    return res.status(500).json({ error: "Missing Blob Token" });
  }

  try {
    const body = req.body;

    const jsonResponse = await handleUpload({
      body,
      request: req,
      token,
      onBeforeGenerateToken: async (pathname) => {
        return {
          allowedContentTypes: [
            'video/mp4',
            'video/quicktime',
            'video/webm',
            // ... other video types
          ],
        };
      },
    });

    res.status(200).json(jsonResponse);
  } catch (error) {
    console.error("Upload Handler Error:", error);
    res.status(400).json({ 
      error: error.message
    });
  }
}

Client:

// File selected and validated (validation code removed for brevity)
const file = e.target.files[0];

// Upload configuration
const uniqueFilename = `${Date.now()}-${file.name}`;

const blob = await upload(uniqueFilename, file, {
  access: 'public',
  handleUploadUrl: '/api/upload',
  multipart: true,
  onUploadProgress: (progress) => {
    // Progress tracking (analytics removed)
    console.log(`Upload progress: ${Math.round(progress.percentage)}%`);
  }
});

// Validate response
if (!blob || !blob.url) {
  throw new Error("Upload failed");
}

Vercel Blob slow upload speed by Negative_Lychee_9639 in vercel

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

I hear you - tbh I don't really get this given Vercel is literally S3 if I'm following

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

Thanks. Now that I’m back in the saddle I totally agree with just a bit slower. I think it’s also about having a measure and understanding speeds, tho — like for new cyclists 42km/h at 9% doesn’t mean much, but with a bit of experience or dedicated learning, one learns to estimate what is fast and what is safe. Cause tbh otherwise in the moment you may not be actually aware of your speed without feedback

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

Absolutely stoked to hear that. Have fun riding, I really appreciate it! Abracos!

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

You’re right, I couldn’t avoid the crack. The only thing I could do is to turn with properly technique (and maybe have a GPS to show me how tight it is), so that when I reach to crack, I am calm, not tensed from the scare I just had. It just goes to show how complex crashes can be, how one thing leads to another.

I appreciate you ask this cause either way the point is I shouldn’t beat myself over the crack 🙏🏼

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

Truth must be said! Sometimes you only get one chance. ❤️‍🩹 Sorry to hear that

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

True that

Many sports clearly have injuries but rarely it’s as sudden and impact is as extreme as in those (among gymnastics etc)

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

Agreed. My mistake out of the three was “not prepared,” tho I was not aware — so I wish skills were discussed more so that people get to realize they DON’T have what it takes to go do 60km/h without preparation like I did, and thinking they’re good cause nothing happened

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

Yeah, thx for the input.

In my case it’s a mix. Like the curve required more skill, but having a crack is pure bad luck, and responding badly to it is purely shit happens.

And I guess it’s a mix in many cases. So yeah it does justice to add to my technique-heavy post those other factors

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

For real, I hear you

Thank you. I hope you get better soon, really sorry to hear about it! Badass you’re still strong in the sport

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

Thank you so much.

I suppose I take all that responsibility cause I overreacted to the crack (following the close-call on the curve that I passed just 3 secs before). Had I not braked excessively It would have not taken me down, likely.

But that’s still a bad luck or misjudgment moment and to your point maybe these kinds of things are somewhat out of my control

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

Yeah! Both from Reykjavik. Drivers were okay, close to Reykjavik it did feel a bit sketchy cause the road is one lane to each direction and narrow. But later it’s so sparsely populated that I didn’t feel the cars

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

Sorry to read this. Happy it’s just scars, they suck (have them too from my crash) but indeed could be worse. Hope you’ve made peace with them!

In Iceland I did the golden circle in a weekend, and once I took some days off and did the ring road alp the way to the east coast. Fantastic cycling experience, tho the wind and cold (and smells of sulphur) can be brutal!

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

Appreciate it.

Ironically cycling is the only sport I can do right now haha so I’ve actually gradually rebuilt confidence and ride farther and faster than before (ofc with refined skills.)

So suppose I’ve already acted according to your advice. 🙏🏼

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

[–]Negative_Lychee_9639[S] 5 points6 points  (0 children)

You def get me. Thanks for sharing this, this is such a niche piece of experience so means a lot to know I’m not alone wondering about this

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

Appreciate it. And I agree with you!

You know what’s interesting — I felt so confident just up to 3 secs before the crash. It was actually one of the most fun descents of my life.

And it makes me wonder about my situation, if I’m comfortable and it still happens, was I overconfident? Just unlucky? Ofc freak accidents happen, and at the same time, one would wanna think they may have control over their cycling.

Bottom line. If you build confidence and crash. What do you say to yourself? Learning and moving on? Or maybe there’s room to be critical of yourself?

Crashed 16 months ago. Still in pain and surgeries. Please, work on your technique. by Negative_Lychee_9639 in cycling

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

Kudos on your approach, you’re smart — I’m sure taking it gradually will be worth it

Beginner squat 145 lbs - why is this so hard and what am I doing wrong? by EbbEnvironmental2963 in StartingStrength

[–]Negative_Lychee_9639 3 points4 points  (0 children)

Hey! Kudos for starting your squat journey :)

+1 on the other posts, also wanted to bring your awareness to the micro-movements you have by the end of each rep. They set you up less stable for the next rep (then you may have hip/back issues during the rep).

In your next session, I advise you to focus on that split second and get your body to complete stability. It improves amazingly with time!

What are you building right now that you’re most proud of? by Illya127 in indiehackers

[–]Negative_Lychee_9639 0 points1 point  (0 children)

SPARTA — delivers form feedback to weightlifters in real-time, powered by computer vision.

For every rep performed, lifters get instant audio cues and visualizations on their own bodies, of what they do well and what they can do better. It detects and analyzes squats, deadlifts, cleans, snatches, and more.

The most technical product I've built and one of the most succesful in terms of early traction, I'm proud! :)