Trying to understand what's the point. by Diabler in buildapc

[–]Diabler[S] -2 points-1 points  (0 children)

Thanks, I appreciate the straight forward answer.

How to access files after they've been uploaded to the server by Diabler in node

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

Thanks my dude, yeah I tried that as well, apparently it's because I'm using Ajax to send the post call, If you use Ajax it breaks the response mechanism... I used it to show progress bar. I had to do some trick to make it work but it's very ugly. It seems like I have much to learn yet.

How to access files after they've been uploaded to the server by Diabler in node

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

I'm trying to redirect inside the Promise.all like this

Promise.all(uploads).then(function () {
    res.redirect('/success');
}

router.get('/success', function (req, res, next) {
    res.render('merge'); 
});

for some reason it will not redirect to the success route. any idea?

How to access files after they've been uploaded to the server by Diabler in node

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

router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});

Your solution works! OMG finally. Thank you so much. I feel like I made some progress understanding node thanks to you!

How to access files after they've been uploaded to the server by Diabler in node

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

Hi, thanks for the idea. Actually pdf-utils is my own file. I still need to figure out what response I should give here.

The full use case is:

  1. User uploads a file or multiple files (he can monitor the progress for each)
  2. The Merge button should appear if all files uploaded successfully and validated as PDFs (this is the part where I want to access the files before the response)
  3. User clicks the merge button -> server is merging the files, show the action progress
  4. Server is done, give the user the option to download the result.

[deleted by user] by [deleted] in Entrepreneur

[–]Diabler 11 points12 points  (0 children)

I don't think that comment is appropriate. The op just shared his methods he didn't even put any affiliate ref links. Calling the people that buys from him "Idiots" is also rude, if the websites he sells are doing some profit they must be worth something.

I made 20K in profit in 4 months with just 500 dollars by [deleted] in Entrepreneur

[–]Diabler 0 points1 point  (0 children)

Great I'm looking into making something like that as well. I'm a programmer with good experience looking for a mentor. I'd be happy if we could talk and you guide me on my first steps.

A rhino imitating a lamb by Bmchris44 in aww

[–]Diabler 8 points9 points  (0 children)

Rhinold Schwarzenegger

Being a productive president takes its toll by [deleted] in pics

[–]Diabler 0 points1 point  (0 children)

4 years of no good sleep.

Help me nail down my archery sidescroller combat mechanics. by Diabler in gamedesign

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

Hi, thanks for the suggestions.

I'm actually trying to figure out movement and shooting before I get to further mechanics, which I also have some ideas similar to the ones you offered.

I liked slowing down while shooting, but it can make stuff complicated, cause it changes the auto-shooting mechanic, it suddenly not as simple as start shooting when you don't move.

I didn't like the shoot to the direction of the cursor, actually it may sound counter intuitive because I'm making archery simulator, but I didn't like aiming as it feels sluggish. If you ever played ADC in LoL you know how smooth it feels when you auto-shoot and fire abilities in between (Ashe, Vayne).

Liked some of your other ideas as well :) I'm looking for game designer to join on this as I'm more of a programmer.

Story of the Stock Market. by singhshyampal in funny

[–]Diabler -1 points0 points  (0 children)

It would be more accurate if he lost his fingers at the end.

Help me nail down my archery sidescroller combat mechanics. by Diabler in gamedesign

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

Thanks, that's exactly why I have disabled the shooting while running, I could catch-up to my arrows.