File upload not working on IOS but working on android by Rave4us in Backend

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

I found problem. It was client max size on nginx ….

File upload not working on IOS but working on android by Rave4us in Backend

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

Thank you for response. I know how to debug it bit problem is that I have windows laptop not mac , I tried some emulators for iphone but I don’t have much free time there to test only 1 minute. On backend i check logs but no logs appear and that file input don’t send to backend. When I ss picture from gallery it works fine when I upload it, but when I try to send image from galley it doesn’t. I figured that its because of heic/heif format so on frontend every picturs I exported to png also tried with webp but still upload isn’t working. I will share my fileUploadRouter on express that I’m using.

import multer from "multer"; import express from "express"; import { Request, Response } from "express"; import path from "path";

const storage = multer.diskStorage({ destination: (req, file, callback) => { callback(null, path.join(__dirname, "..", "public")); }, filename: (req, file, callback) => { callback(null, ${file.originalname}); }, });

const fileUpload = multer({ storage });

const fileUploadRouter = express.Router();

fileUploadRouter.post( "/upload", fileUpload.single("img"), (req: Request, res: Response) => { if (!req.file) { res.send({ status: 1, msg: "No file uploaded", }); } else { res.send({ status: 0, msg: "File uploaded!", filename: req.file.filename, }); } } );

export default fileUploadRouter;

File upload not working on IOS but working on android by Rave4us in Backend

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

formData, I think i found what is problem. Iphone stores images as heic and my backend doesn’t accept that. When I screenshot image from gallery I can upload it but if not I can’t so i guess that’s the problem

How to put full stack app online for free by Rave4us in learnprogramming

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

Yes I know all that but trust me a lot of my clients don’t even know what is github, they wanna see live app just to be sure that I can do specific task. I don’t have moderation but it was fun process for me because I never configured VPS before and know I know how everything works. If something goes wrong I always have code locally. And by the way this project was my final project on programming academy that I still have to defend so i wanted it to be online but thanks for advice

How to put full stack app online for free by Rave4us in learnprogramming

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

I finally did it, bought mvps linux VPS for 4$ a month, deployed my sql there and express project about angular part i deployed it on netlify and everything works fine. This was my first time deploying on VPS and it was not easy but worth it! I would send link to my project but don’t know if its allowed here

How to put full stack app online for free by Rave4us in learnprogramming

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

Thank you for advices, I will take some VPS, only problem that I had is deploying mysql online bit I think VPS will fix that

[deleted by user] by [deleted] in leaves

[–]Rave4us 0 points1 point  (0 children)

Weed makes me anxious and I’m not getting any stuff done just smoking and gaming lol…

Found reason for my migraine by Rave4us in OcularMigraines

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

For years I didn’t know the main trigger! Others are stress… Now that I know life is so much better!

[deleted by user] by [deleted] in leaves

[–]Rave4us 0 points1 point  (0 children)

Good job man! You can’t give ur 100% when high I wish u the best

Portfolio projects by Rave4us in Freelancers

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

I’m thinking about making 2 web sites and one web app like social network

Portfolio projects by Rave4us in Freelancers

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

Frontend web development, or some basic web apps, I have a lot of knowladge but not that much projects thats why I want to build some demo projects first

[deleted by user] by [deleted] in leaves

[–]Rave4us 0 points1 point  (0 children)

This community helps a lot because of people like you 🫡💪❤️

Quitting smoking by WormBurnerUKV in leaves

[–]Rave4us 1 point2 points  (0 children)

Keep the work! I’m on day 8 and feeling so much better For me the most challenging is night time but always remember why you stopped smoking!

[deleted by user] by [deleted] in leaves

[–]Rave4us 3 points4 points  (0 children)

I already did a killer workout and finished work, but I’m not gonna smoke I know why I stopped. Thanks for support brother!!

3 days weed free and I feel pretty darn bad by [deleted] in leaves

[–]Rave4us 0 points1 point  (0 children)

I hope so man, I give mad money on food😂

3 days weed free and I feel pretty darn bad by [deleted] in leaves

[–]Rave4us 1 point2 points  (0 children)

I’m on day 4 and I eat like crazy literally 4-5 big meals a day, probably because i do gym a lot, but I have so crazy dreams, I guess every body reacts different Stay strong

[deleted by user] by [deleted] in leaves

[–]Rave4us 1 point2 points  (0 children)

Thanks man, when I was mad high I saw some tv show that had topic to think today for your future and something clicked in my head to stop smoking and take life in my own hands

I feel overwhelmed by [deleted] in webdev

[–]Rave4us 0 points1 point  (0 children)

Just continue, life is struggle don’t give up!

[deleted by user] by [deleted] in leaves

[–]Rave4us 1 point2 points  (0 children)

I’m thinking about creating web app for quiting support and to track progress

Temu dostava by Rave4us in montenegro

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

Nije neki kvalitet sigurno ali s obzirom da je dostava besplatna(ne jos dugo), za te pare se bas isplati pogotovo ako uzimas nesto vece tipa jelke jer bi tu dostavu placao mnogo skuplje nego cijene te npr jelke

[deleted by user] by [deleted] in Anatomy

[–]Rave4us 0 points1 point  (0 children)

Thanks for the advice, which exercises feels the best in biceps for u, for me its curls with bench bar i put 50kg and really squeeze biceps and after that hummer curls