---
title: "फ़ाइल प्रबंधन"
description: "Tajo डील डॉक्युमेंटेशन के लिए Brevo CRM में फ़ाइल अटैचमेंट अपलोड और प्रबंधित करें"
url: https://tajo.io/hi/docs/sales-crm/files/
markdown: https://tajo.io/hi/docs/sales-crm/files.md
lang: hi-IN
robots: noindex
---

अर्ली एक्सेस का अनुरोध करें

अपना पहला नाम और कार्यस्थल का ईमेल पता दर्ज करें। Tajo एक्सेस अनुरोध की पुष्टि के लिए हम आपको एक लिंक ईमेल करेंगे।

# फ़ाइल प्रबंधन

Brevo CRM Files API से आप Tajo प्लेटफ़ॉर्म के अंदर कॉन्टैक्ट, कंपनियों और डील से जुड़े फ़ाइल अटैचमेंट अपलोड और प्रबंधित कर सकते हैं.

## अवलोकन

फ़ाइल प्रबंधन इन कामों के लिए ज़रूरी है:

- **डील डॉक्युमेंटेशन** प्रस्ताव, कॉन्ट्रैक्ट और समझौते संभालना
- **ग्राहक रिकॉर्ड** इनवॉइस, रसीदें और पत्राचार जोड़ना
- **लॉयल्टी प्रोग्राम की सामग्री** प्रोग्राम की जानकारी और लाभों का सारांश साझा करना
- **अनुपालन** एंटरप्राइज़ अकाउंट के लिए दस्तावेज़ों का ऑडिट ट्रेल बनाए रखना
- **टीम सहयोग** सेल्स टीम के सदस्यों के बीच संसाधन साझा करना

## क्विक स्टार्ट

### फ़ाइल अपलोड करें

```http
POST https://api.brevo.com/v3/crm/files
Content-Type: multipart/form-data
api-key: YOUR_API_KEY

--boundary
Content-Disposition: form-data; name="file"; filename="enterprise-proposal.pdf"
Content-Type: application/pdf

[file content]
--boundary
Content-Disposition: form-data; name="dealIds"

deal_abc123def456
--boundary
Content-Disposition: form-data; name="companyIds"

comp_123456789
--boundary
Content-Disposition: form-data; name="contactIds"

12345
--boundary--
```

### रिस्पॉन्स

```json
{
  "id": "file_001",
  "name": "enterprise-proposal.pdf",
  "size": 245760,
  "contentType": "application/pdf",
  "dealIds": ["deal_abc123def456"],
  "companyIds": ["comp_123456789"],
  "contactIds": [12345],
  "created_at": "2026-01-25T14:30:00Z"
}
```

## फ़ाइलें प्राप्त करें

### सभी फ़ाइलें सूचीबद्ध करें

```http
GET https://api.brevo.com/v3/crm/files?limit=50&offset=0&sort=desc
Content-Type: application/json
api-key: YOUR_API_KEY
```

### रिस्पॉन्स

```json
{
  "items": [
    {
      "id": "file_001",
      "name": "enterprise-proposal.pdf",
      "size": 245760,
      "contentType": "application/pdf",
      "dealIds": ["deal_abc123def456"],
      "companyIds": ["comp_123456789"],
      "created_at": "2026-01-25T14:30:00Z"
    }
  ],
  "total": 1
}
```

### फ़ाइलें फ़िल्टर करें

```http
GET https://api.brevo.com/v3/crm/files?filters[dealIds]=deal_abc123def456&sort=created_at:desc
```

### एक फ़ाइल प्राप्त करें

```http
GET https://api.brevo.com/v3/crm/files/{file_id}
Content-Type: application/json
api-key: YOUR_API_KEY
```

### फ़ाइल डाउनलोड करें

```http
GET https://api.brevo.com/v3/crm/files/{file_id}/data
api-key: YOUR_API_KEY
```

## फ़ाइल प्रबंधन का ऑटोमेशन

### डील दस्तावेज़ वर्कफ़्लो

डील के पूरे जीवनचक्र में दस्तावेज़ों को अपने आप प्रबंधित करें:

```javascript
class DealDocumentManager {
  constructor() {
    this.filesApi = new FilesApi();
  }

  async attachProposal(dealId, proposalBuffer, companyName) {
    const fileName = `proposal-${companyName.toLowerCase().replace(/\s+/g, '-')}-${Date.now()}.pdf`;

    const file = await this.filesApi.uploadFile({
      file: proposalBuffer,
      fileName: fileName,
      dealIds: [dealId]
    });

    // Create a note referencing the uploaded proposal
    await this.notesApi.createNote({
      text: `Proposal uploaded: ${fileName}`,
      dealIds: [dealId]
    });

    return file;
  }

  async attachContract(dealId, contractBuffer, companyId) {
    const fileName = `contract-${dealId}-${new Date().toISOString().slice(0, 10)}.pdf`;

    const file = await this.filesApi.uploadFile({
      file: contractBuffer,
      fileName: fileName,
      dealIds: [dealId],
      companyIds: [companyId]
    });

    return file;
  }

  async getDealDocuments(dealId) {
    const files = await this.filesApi.getFiles({
      filters: { dealIds: dealId },
      sort: 'created_at:desc'
    });

    return {
      proposals: files.items.filter(f => f.name.startsWith('proposal-')),
      contracts: files.items.filter(f => f.name.startsWith('contract-')),
      other: files.items.filter(f =>
        !f.name.startsWith('proposal-') && !f.name.startsWith('contract-')
      ),
      totalSize: files.items.reduce((sum, f) => sum + f.size, 0)
    };
  }
}
```

### लॉयल्टी प्रोग्राम के दस्तावेज़

```javascript
class LoyaltyDocumentManager {
  async generateAndAttachBenefitsSummary(companyId, tier) {
    const company = await this.companiesApi.getCompany(companyId);

    const summary = await this.generateBenefitsPDF({
      companyName: company.name,
      tier: tier,
      benefits: this.getTierBenefits(tier),
      annualSpend: company.attributes.annual_spend,
      pointsBalance: company.attributes.loyalty_points
    });

    return await this.filesApi.uploadFile({
      file: summary,
      fileName: `loyalty-benefits-${tier.toLowerCase().replace(/\s+/g, '-')}.pdf`,
      companyIds: [companyId]
    });
  }

  async attachTierUpgradeDocuments(companyId, oldTier, newTier) {
    const documents = [
      { name: 'tier-upgrade-confirmation', content: this.generateUpgradeConfirmation(oldTier, newTier) },
      { name: 'new-benefits-guide', content: this.generateBenefitsGuide(newTier) }
    ];

    const uploaded = [];
    for (const doc of documents) {
      const file = await this.filesApi.uploadFile({
        file: doc.content,
        fileName: `${doc.name}-${Date.now()}.pdf`,
        companyIds: [companyId]
      });
      uploaded.push(file);
    }

    return uploaded;
  }
}
```

## समर्थित फ़ाइल प्रकार

| श्रेणी | एक्सटेंशन | अधिकतम साइज़ |
| --- | --- | --- |
| दस्तावेज़ | `.pdf`, `.doc`, `.docx`, `.txt` | 10 MB |
| स्प्रेडशीट | `.xls`, `.xlsx`, `.csv` | 10 MB |
| इमेज | `.png`, `.jpg`, `.jpeg`, `.gif` | 5 MB |
| प्रेज़ेंटेशन | `.ppt`, `.pptx` | 10 MB |

## API मेथड संदर्भ

```javascript
// Upload a file
const file = await filesApi.uploadFile({
  file: fileBuffer,
  fileName: 'proposal.pdf',
  dealIds: ['deal_abc123'],
  companyIds: ['comp_123']
});

// Get file metadata
const file = await filesApi.getFile('file_001');

// Download file data
const fileData = await filesApi.downloadFile('file_001');

// Delete file
await filesApi.deleteFile('file_001');

// List files with filtering
const files = await filesApi.getFiles({
  filters: { dealIds: 'deal_abc123' },
  sort: 'created_at:desc',
  limit: 50
});
```

## बेहतरीन तरीके

1. **नामकरण के नियम**: आसान पहचान के लिए तारीख़ सहित वर्णनात्मक फ़ाइल नाम इस्तेमाल करें
2. **रिकॉर्ड जोड़ें**: फ़ाइलों को सभी संबंधित डील, कंपनियों और कॉन्टैक्ट से जोड़ें
3. **वर्ज़न प्रबंधन**: फ़ाइल नामों में वर्ज़न नंबर या तारीख़ शामिल करें
4. **साइज़ प्रबंधन**: बड़ी फ़ाइलें अपलोड करने से पहले कंप्रेस करें
5. **एक्सेस नियंत्रण**: सही एक्सेस पक्का करने के लिए फ़ाइल के जुड़ावों की नियमित समीक्षा करें
6. **सफ़ाई**: CRM रिकॉर्ड संभालने लायक बनाए रखने के लिए पुराने दस्तावेज़ हटाएं

## एरर हैंडलिंग

```javascript
try {
  const file = await filesApi.uploadFile(fileData);
  console.log('File uploaded:', file.id);
} catch (error) {
  if (error.status === 400) {
    console.error('Invalid file data:', error.message);
  } else if (error.status === 413) {
    console.error('File size exceeds maximum limit');
  } else if (error.status === 415) {
    console.error('Unsupported file type');
  } else {
    console.error('Unexpected error:', error);
  }
}
```

## अगले चरण

- **[कंपनी प्रबंधन](https://tajo.io/hi/docs/sales-crm/companies)** - कॉर्पोरेट अकाउंट प्रबंधित करें
- **[डील प्रबंधन](https://tajo.io/hi/docs/sales-crm/deals)** - सेल्स पाइपलाइन ट्रैक करें
- **[टास्क प्रबंधन](https://tajo.io/hi/docs/sales-crm/tasks)** - सेल्स गतिविधियाँ प्रबंधित करें
- **[नोट्स](https://tajo.io/hi/docs/sales-crm/notes)** - ग्राहक बातचीत दर्ज करें
