Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix samchon/nestia#1018: HttpMigrateRouteFetcher for React Native. #50

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

samchon
Copy link
Owner

@samchon samchon commented Sep 17, 2024

In the React Native, it does not support the File class.

Instead, it can compose the FormData class instance by appending below primitive object type. The primitive type can replace the File class instance in the React Native.

In such reason, changed HttpMigrateRouteFetcher logic a little bit for the React Native File supporting issue.

const form: FormData = new FormData();
form.append("key", {
  uri: "somewhere-uri-address-of-file-location",
  name: "file-name",
  type: "content-media-type",
});

In the React Native, it does not support the `File` class.

Instead, it can compose the `FormData` class instance by appending below primitive object type. The primitive type can replace the `File` class instance in the React Native.

In such reason, changed `HttpMigrateRouteFetcher` logic a little bit for the React Native `File` supporting issue.

```typescript
const form: FormData = new FormData();
form.append("key", {
  uri: "somewhere-uri-address-of-file-location",
  name: "file-name",
  type: "content-media-type",
});
```
@samchon samchon added bug Something isn't working enhancement New feature or request labels Sep 17, 2024
@samchon samchon self-assigned this Sep 17, 2024
Copy link
Owner Author

@samchon samchon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@samchon samchon merged commit 1c87c42 into master Sep 17, 2024
4 checks passed
@samchon samchon deleted the feature/file branch September 17, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant