Answer the question
In order to leave comments, you need to log in
How can I remove a fragment of a line up to a point in js?
How can I remove the entire fragment of the string up to the point. For example, there is a string 'someimage.jpg', how to remove 'someimage'?
Or if someone uses multer, how to put the name of the uploaded file yourself and add just the file extension there?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question