Page MenuHomePhabricator

Creates new files on Commons instead of overwriting
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • process a video
  • click "Overwrite"
  • click "Upload to Commons"

What happens?:

When uploading the processed video it creates a new file with name extended with " edited 0" even if "Overwrite" is selected. This is the same behavior as if "Upload as a new file" is selected.

What should have happened instead?:

When uploading the processed video and "Overwrite" is selected it should overwrite the original file

Event Timeline

@real68er I want to work on this please assign this task to me

Hi and thank you for your interest! Please check thoroughly https://www.mediawiki.org/wiki/New_Developers (and all of its communication section!). The page covers how to get started, assigning tasks, task status, how to find a codebase, how to create patches, where to ask general development questions and where to get help with setup problems, and how to ask good questions. Thanks a lot! :)

@real68er hey will you please guide me about the .env.example file or like what I have to setup in .env

hey @Shibraj123 i suggest you go through the readme once. if you face any doubts feel free to tag @Gopavasanth @Reputation22 @Soda @Punith.nyk here or on zulip : )

also regarding setting up .env file you can follow this part of the readme

Creating .env file
Store the obtained Client ID, and Client Secret, in the .env file, under the keys CLIENT_ID, and CLIENT_SECRET respectively.
Name the file as .env.dev if its for development, or .env.prod if its for production.
Note: These files should follow the format, given in the .env.example file

If you want to contribute make a .env.dev file and add those secrets there

For resolving the issue here, make sure the file name should be the same as name of the file uploaded (in case of overwrite), and <file name>-edited.webm (in case of upload a new file)