Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "zokho"

Hi Thanks for your solution and sorry for the late response. Actually, I have replied but not sure where it has gone! I have got 2 questions followed by a request regarding your approach:

  1. When you say a Controller, do you mean an API within the Api project or a normal Controller and an action defined in the Web project?
  2. Why are you converting the uploaded file to String?! Do you save the converted string in DB or store in a folder?
  3. Could you please send the Angular code you use to call the Controller and the service?

Thanks

Hi Ibrahim, Thanks again for your advice. Now I have got another question: I am using [https://github.com/danialfarid/ng-file-upload]) to upload files via Angular. I am using the code below to send userId as a form data multipart along with the uploaded file to create a folder as per its value and then save the uploaded file:

file.upload = Upload.upload({
      url: '/api/File/Upload',
      data: {userId: appSession.user.id, file: file}
    });

For the whole past day I have been struggling to fetch the form-data and get the posted userId so I could create a folder prior saving the file. Do you have any advice on:

  1. Am I doing the right thing? I mean, do I really need to pass the userId along with the file or I could retrieve it in the WebApi project side somehow?!
  2. I have just come across this parser [https://github.com/Vodurden/Http-Multipart-Data-Parser]) which would let to parse the form-data request (have not tried that though as yet!)
  3. Is there a such parser within the ABP Framework so I could use rather using the above parser?

I really appreciate your advice and thanks in advance... ;)

Answer

Awesome! You are the man Ibrahim ;)

Hi there, Is there a time estimation on when OAuth is going to be included into the ABP framework? If it is going to be near future I do not want to bother myself to redo it...

Thanks,

Showing 31 to 34 of 34 entries