Upload files using multer - multer

hello when i send an image to my express app using multer it dosen't save it in the destination
this is what i've done
express code
and this is a screen shot of postman request
postman request
destination folder

Related

How to track an gmail's email through an api attach to an src tag of image?

I want to track the email when somebody opens the image attach to that email. So i have been rendering an image byte through an api attach to the image tag rendered in email template. But whwn i am opening the email the src tag embeds the google proxy server address to my api address and not sending to my backend. background-image:url('https://ci6.googleusercontent.com/proxy/RMM_t4IFMpVLwbzLttQJroXN8EPE8atXTqU703UgLhhhytAO-_AvbFUjVyDXKGgcExvdyZtB7aBMSNHphT8n7rVxNMvsij1BsL4SCw=s0-d-e1-ft#https://resources.sparkwork.io/renderImage'). In this my actual api is https://resources.sparkwork.io/renderImage .So how can i solve this problem. Because when i am attaching some image url them its working and showing that image but when i am using my backend api then call is not coming to my backend to render that byte code of image. So any solution to solve this problem ?

Slack image url asks for login

I have integrated slack in my custom application using the API provided by Slack.
I am able to fetch the post from Slack and able to display it in my application. I am able to fetch the image that was uploaded with the post (Few days back) but today when I added a post with the image. The image is not being displayed in the application, when I am trying to access the image URL in the browser it is asking for Authentication.
I am accessing the slack rest API to fetch the post from slack. from the response I am taking the "thumb_64" parameter from the "file" object.
I am able to access the below image URL, this image was uploaded on 2016-01-11
https://files.slack.com/files-tmb/T0F8RH7U7-F0J505EG1-33434fadf3/screenshot_from_2015-12-28_15_23_39_160.png
But I am not able to access the below mentioned URL ,this image is uploaded on 2016-02-16
https://files.slack.com/files-tmb/T0F8RH7U7-F0MHZL70Q-d740ed784b/configration_160.png
Thanks & Regards,
Have you seen the update where #slackapi announced about accessing files using the Web API?
Essentially, you now need to provide authentication to access file assets, by specifying an HTTP Authorization header with an OAuth token that has the correct scopes to access that kind of data for a team.
For example, you'd send a header like this with your GET request:
GET https://files.slack.com/files-tmb/T0F8RH7U7-F0MHZL70Q-d740ed784b/configration_160.png
Authorization: Bearer YOUR_VALID_ACCESS_TOKEN_HERE
The File type documentation goes into further detail.

Download photo with http authentication - MWPhotobrowser on ios

I'm trying to figure out how to download images in the MWPhotoBrowser when the image URLs require authentication. In my case the images are on S3 and I need to pass a key along with the url. I don't see a way to handle this in the browser.
Changed my approach and instead get a tokenized URL from S3 and then pass clean urls into the photo browser.

DropBox file upload using core api https://api-content.dropbox.com/1/files/<root>/<path>

I am integrating dropbox in my app using OAuth 2.0 and now I want to upload a image using it's core api
https://api-content.dropbox.com/1/files//
my problem is there is no parameter shown for file upload (where i can send NSData)
DropBox documentation link :- https://www.dropbox.com/developers/core/docs ( /files (POST) )
I don't want to upload file/image using DBRestClient because it requires two time of login one via webView (OAuth 2.0) and another one via it's internal framework and my app require OAuth 2.0 integration.
Look closer. The documentation says:
Request body: "The file contents to be uploaded. Since the entire POST body will be treated as the file, any parameters must be passed as part of the request URL. The request URL should be signed just as you would sign any other OAuth request URL."
So you need to upload the actual contents through the message body (where the POST data would go).
However, the documentation also recommends to use /files_put instead.

Getting response code 404 on upload image on server in blackberry

I want to upload an image to a server. I used the code from SO question: Blackberry jde : how to upload an image in server using MultipartPostData
But the image is not uploaded to the server.
Are you 100% certain that the URL you are POSTing to is valid?
HTTP 404 is "resource not found"; for a POST that would typically mean the CGI program, script or controller is not at the path you've given.

Resources