• Hi, is it possible to filter by content-type (pdf, docx, …)?
    I’d like to use it only to store uploaded documents and not for the website.
    And it’s possible to change the upload folder from year/month to post_id? It could be easier to find files on cloud storage.

    Thanks
    Stefano

Viewing 1 replies (of 1 total)
  • Hi @stefanomaxis
    You can try to use wp_stateless_file_name filter. It add the Bucket Folder to the GCS path.

    The year/month prefix comes from the WordPress. You can try to replace this in the filter using regex. It won’t be possible to get post_id in wp_stateless_file_name filter.

    Example GCS path: [Bucket Folder/]2019/01/1546873657525.jpeg

    Let us know the results.
    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘filter uploads and upload folder’ is closed to new replies.