-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix import Event #1945
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 import Event #1945
Conversation
985e942 to
1ae4d9a
Compare
1ae4d9a to
ecd3f1b
Compare
ecd3f1b to
bbc6331
Compare
abhinavk96
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@YogeshSharma0201 Update this PR please
fb81309 to
56e8867
Compare
| var endpoint = 'import/json'; | ||
| var ext = file.name.split('.'); | ||
| ext = ext[ext.length - 1].toLowerCase(); | ||
| if (ext === 'xml') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about .zip, .xcal cases ? The upload input accepts those too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@niranjan94 actually only .zip files can be successfully imported, its endpoint is import/json. Other cases don't even have a valid endpoint, but eventyay had this code so i thought they can be implemented later on the server side. Should i only accept .zip then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@YogeshSharma0201 add the .zip and .xcal cases, it's fine if server doesn't accept them for now.
| var endpoint = 'import/json'; | ||
| var ext = file.name.split('.'); | ||
| ext = ext[ext.length - 1].toLowerCase(); | ||
| if (ext === 'xml') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@YogeshSharma0201 add the .zip and .xcal cases, it's fine if server doesn't accept them for now.
56e8867 to
7cebd39
Compare
|
@CosmicCoder96 i have included .xcal case and .zip is already added, its api is import/json. |
Checklist
developmentbranch.This PR is subpart of PR #1788, for easier testing and review.
Backend Changes PR fossasia/open-event-server/pull/5531