importing pdf attachment

Closed

Import WP Pro Updated 3 months ago 4 Replies

LATWAN asked 3 months ago on August 29, 2024 at 9:46 pm

When I import PDF attachment from the library into an ACF field, it imports the wrong file.  The file names are similiar but different. For example when I import a file named 001-01.pdf, it will import EK001-01.pdf into the field.  

Here’s some additional info.  I initially uploaded a spreadsheet where the columns weren’t in sync therefore attaching the wrong files to each post.  So I had to remove those attachments and am now attempting to upload a corrected csv file.  However, it’s still attaching incorrect PDFs.

J

James replied Support Agent

3 months ago on August 30, 2024 at 12:41 pm

Hi Latwan,

The importer downloads the attachment to the filename set in the attachment response header, which might be the reason for this, to allow me to test can you attach an example record from your xml or csv file that has the filename set.

James

LM

LATWAN replied

3 months ago on August 30, 2024 at 7:02 pm

Here is a sample (1st 10 rows) from the file I've been working with.  For the first row it's supposed to import 001-01.pdf but it's importing EKE-001-01.pdf

J

James replied Support Agent

3 months ago on August 30, 2024 at 8:28 pm

Hi,

Can you install the attached version of the plugin, this has a fix in place that should resolve finding the correct file from the media library.

James

LM

LATWAN replied

3 months ago on August 30, 2024 at 10:40 pm

That seems to have solved the problem, thanks!