rename file after uploading
Asked by Amir:

Hi,

How can I create an uploadnig attachment form for a file list page in confluence data center that contains some fields to rename the file automatically and assign some labels to file according to fields selected by user while uploading an attachment?

I want to do this for better indexing.

Thanks


Answers:
author: Diego
body: Hi there [@Amir](/t5/user/viewprofilepage/user-id/4168846)!

As I understand, you need to create a form that automatically tags, names and places the attachments in Confluence without user interaction after the first one.

Reading your question, I see that you mention *Confluence Data Center* . However, looking at the classification you made for the question, it is classified as *Confluence Cloud*. Those two platforms have fairly different options when it comes to customization and usability. With this in mind, I have my first question:
> 1. *What platform are you currently using? (Confluence Cloud or Confluence Datacenter).*

If you need more information about the differences between them, here we have a more comprehensive list of differences:
> * [++***\[Confluence Support\] Functional differences in Confluence Cloud vs. Server***++](https://support.atlassian.com/confluence-cloud/docs/functional-differences-in-confluence-cloud-vs-server/)

The workflow where attachments are automatically named and tagged during file upload based on selected fields is not natively available in either. You can potentially make use of the Blueprints feature in Confluence and build a solution that works:
> * ++***[\[Confluence Cloud\] Confluence Blueprints](https://developer.atlassian.com/cloud/confluence/blueprints/)***++
> * ++***[\[Confluence Data Center and Server\] Confluence Blueprints](https://developer.atlassian.com/server/confluence/confluence-blueprints/)***++

Since both platforms (Cloud and Datacenter) do not natively support this, we can either implement a Blueprint, a "homebrew" plugin or ++*use an available software piece from our third-party vendors*++. For third-party vendors, you can check here:
> * ++***[\[Atlassian Marketplace\] Confluence Cloud -- attachments](https://marketplace.atlassian.com/search?hosting=cloud&product=confluence&query=attachment)***++
> * ++***[\[Atlassian Marketplace\] Confluence Datacenter and Server -- attachments](https://marketplace.atlassian.com/search?hosting=dataCenter&product=confluence&query=attachment)***++

Both platforms (Cloud and Datacenter) have file management solutions. However, to rename and tag the files, users need to manually do it. For more information on how this works on Confluence, you can take a look here:
> * ++***[\[Confluence Cloud\] Manage uploaded files](https://support.atlassian.com/confluence-cloud/docs/manage-uploaded-files/)***++
> * [++***\[Confluence Datacenter and Server\] Manage Files***++](https://confluence.atlassian.com/doc/manage-files-139415.html)

Let us hear from you!

comments: author: Amir
body: Hi. Thanks for your help.

The platform we are currently using is Data-Center 7.10.

what is a "homebrew" plugin?


author: Diego
body: Thanks for asking that!

When I said "homebrew" plugin, I made a reference to Confluence App development:
> ++***[Developing apps for Atlassian Data Center products](https://developer.atlassian.com/platform/marketplace/developing-apps-for-atlassian-data-center-products/)***++

Hope that this documentation helps you!


Tags: data-center