1

I'm trying to edit this bit of code within my template. I managed to set it to only accept .PNG files but would like to insert a list of files I'd like to accept such as .png,.jpg,.doc etc.

'accept_file_types'       => COUNT($acceptedFileTypes) ? ('/(\.|\/)(' . str_replace(".", "", implode("|", $acceptedFileTypes)) . ')$/i') : '/.png+$/i',

Tried a lot of different things but almost everything I've tried breaks the upload system. Would like some help adding more filetypes to this line. Thanks

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.