jodit / jodit/jodit-react

custom url for the image uploader

Open
#38 0 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
406
Forks
131
Avg merge
2h 32m
Merged PRs (30d)
2

Description

Hi,
Thanks for the editor, I would like to upload the images in custom url(server)
xxxx/upload and not in https://xdsoft.net/jodit/connector/index.php?action=fileUpload
`.

I tried by changing configuration in uploader.ts file, but din work out,

Config.prototype.uploader = {
	url: '***/upload',
	insertImageAsBase64URI: false,
	imagesExtensions: ['jpg', 'png', 'jpeg', 'gif'],
	headers: {
         Authorization: "zjdkjfkld"
       },
	filesVariableName(i: number): string {
		return `files`;
	},
	withCredentials: false,
	pathVariableName: 'path',
	format: 'json',
	method: 'POST',
       

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the uploader.ts configuration referenced in the report and trace how the uploader selects its URL. Reproduce the configuration with the reported custom endpoint and determine the expected upload response; done means uploads use the configured server URL instead of the default connector URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
api, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.