3

Hey fellow ranters. Please help me with some trouble in my code :(

http://stackoverflow.com/questions/...

I think i'm losing hope in me and in my future as a developer... This is actually a pretty easy thing but nothing it is not working... Please help me!!

Comments
  • 2
    I wish I knew about lumen so I could help!
  • 1
    @champion01 don't worry, can you please help me with the angular code? I really don't know where is the problem :(

    If you can't don't worry, I appreciate your comment :)
  • 2
    Sorry I dint see any problems with it :/.

    My guess is the problem is in lumen routes or the lumen control. Your angular front-end looks good

    - take this with a grain of salt as I may be wrong
  • 1
    @champion01 I understand, thanks!
  • 2
    My first thought was that your file input didn't have a ng-model
    It looks like the file is certainly making it to the server though from the screenshot

    Let us know if you resolve it!
  • 1
    Maybe I found something... I'll keep commenting :D
  • 1
    I have almost no experience with Lumen, but just from a debugging perspective - instead of trying to output the request again as JSON, I would just do a print_r and exit instead. Helps rule out some other possibilities and you just want to see what's in there.
  • 2
    yup. all else fails, just start printing stuff. you need to exactly what's being passed at what point. base level is just to print everything. debugging is a massive part of web dev. get good at it and things will get easier. good luck!
Add Comment