File types for upload

This topic contains 7 replies, has 3 voices, and was last updated by  Katrine DS 7 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #376397

    Katrine DS
    Free User
    Post count: 29

    Hi,

    Is it possible to have more file types in the standard upload field. Right now it’s only image files. I’d like text files too… I know I can make a custom upload field – but it’s confusing for useres, if there’s two different upload fields. It would be nice if the standard upload could take both image and text files. Can’t find a setting for this.

    Thanks.

    #376412

    Kor
    Moderator
    Post count: 16516

    Hi Katrine,

    I’d like you to know that you can always create a “File Upload” custom field to allow your customers to upload files https://wpgeodirectory.com/docs/core-place-settings/#file

    Thanks!

    #376418

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You can also use this filter to add or remove from the list
    https://wpgeodirectory.com/codex/codex/geodirectory_filters/geodir_allowed_mime_types/

    Thanks,

    Stiofan

    #376462

    Katrine DS
    Free User
    Post count: 29

    Hi Stiofan,

    I looked at the filter you sent. And in the general-functions.php
    It looks like it’s all there – so my question is, how do I add i.e. pdf’s og .doc’s in the same standard uploader as the images. My client prefers only one upload field – and I could remove the standard field with css, but I guess there won’t be any ‘profile/thumbnail’ pic on the listing, if I don’t use the standard upload field for images.

    #376561

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Ah that standard one, not that is for the image gallery, not for other file types.
    That is not something we would want to do, it might be possible with customisation but i would not recommend it.

    Thanks,

    Stiofan

    #377848

    Katrine DS
    Free User
    Post count: 29

    Hi,

    How do I increase the number of allowed uploads? It looks like it’s only possible to upload 1 in the custom upload field. And there’s not settings for size and number – only file formats.

    Thanks.

    #377898

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yes it can only take one file, what are you trying to achieve and maybe i can give some advice?

    Stiofan

    #377905

    Katrine DS
    Free User
    Post count: 29

    I’m trying to achieve that a user making a listing can upload several text documents (pdf’s or whatever). One is not quite enough. Would be great if I didn’t have to make 10 custom upload fields, for users to be able to upload 10 documents 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket