You are here:  » Failed to import Share A Sale txt file


Failed to import Share A Sale txt file

Submitted by yomomma on Wed, 2021-02-17 00:42 in

Says 'invalid file type' when trying to register the feed txt file form Share A Sale. What Filters do I need to use and Field to import the file?

Thanks,

Jim

Submitted by support on Wed, 2021-02-17 09:30

Hello Jim,

It's probably just down to the filename extension, by default only 0-9, A-Z, a-z underscore, hyphen and period with an extension of .xml or .csv are permitted, but if you wanted to allow for example .txt then you can edit config.advanced.php and modify $config_filenameRegExp at line 94 for example;

  $config_filenameRegExp = "/^([0-9A-Za-z_\-\.]+)(\.xml|\.csv|\.txt)$/";

Cheers,
David.
--
PriceTapestry.com

Submitted by yomomma on Wed, 2021-02-17 16:29

That worked with adding .txt to the Reg. Thanks. Always great responses!