Questions tagged [attachment]

Adding more information or materials to a digital item, such as a file attached to an email.

Downloading files from an Ajax response using the Content-Disposition attachment

I am currently working on a website that interacts with a webservice using JavaScript to handle JSON requests. I make these requests via XMLHttpRequest and sometimes the service responds with a download request: Example: Content-Disposition: attachment; ...

evt.target consistently returns the initial input within the list of inputs

My React file uploader allows users to attach multiple file attachments. Each time a user clicks on an input, I retrieve the data-index to identify the input position. renderFileUploader() { let file_attachment = this.state.file_attachment.map(fun ...

Sending emails with multiple attachments in PHPI'm looking

I have written this code to send multiple attachments: $file_array=$_FILES["file"]; //array of files if(!empty($file_array['name'])){///if attachment $uid = md5(uniqid(time())); $header = "From: od "; $header .= "MIME-Version: 1. ...

Incorporate an attachment from a test run while generating a Bug ticket within Azure DevOps

My goal is to automatically generate a Bug ticket in DevOps when a test run fails, including a screenshot in the attachments. However, when I try to create the Bug ticket, only error messages, stack trace, and other information appear in the Repro Steps se ...

Unable to transfer a file from a distant location to the server

When attempting to access the remote file as an attachment, I am able to retrieve the headers but not the file or its content. <?php error_reporting(E_ALL); // Various methods tried with no success /*$url = 'http://www.dev-c.com/nativedb ...

Having trouble uploading SharePoint list item with attachment from Angular to ASP.NET Core Web API via NgModel

Recently, I successfully added a SharePoint list item with an attachment from Angular to ASP.NET Core Web API. This was achieved using FormControl in the Angular application. I found guidance on how to upload files from Angular to ASP.NET Core Web API at ...

PHP download feature enhancement using underscores

My goal is to retrieve and download a file based on the value passed in through POST. However, I'm encountering an issue where if the file name is "Functional requirements example," it gets downloaded as "__Functional." Am I making a mistake here? Th ...