Confirm a Save Source To Files feature for Migrate Source UI is easily possible
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3279487. --> Reported by: [kenowax](https://www.drupal.org/user/3654840) Related to !4 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Sometimes, when a User / Admin uploads a file via Migrate Source UI, you'd want to save the file at the location provided in the Migration Source Path.</p> <p>For example, if the migration file's source contains :</p> <pre>source :<br>&nbsp; plugin: csv<br>&nbsp; path: sites/default/files/my-file.csv</pre><p>The file uploaded will overwrite my-file.csv.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add a checkbox in Migrate Source UI to upload the file or not.<br> Add in the form validation a file-move to the new path.</p> <p>Here's an example image :</p> <p><img src="https://www.drupal.org/files/issues/2022-05-09/Screenshot%20from%202022-05-09%2015-35-15.png"></p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <ol> <li>Review the code. There's bound to be some roadblock I didn't think about when writting the code.</li> <li>Standardize the code : The code I've written is not compliant with Drupal Standards. I've also refactored the Form class a bit.</li> <li>Write some tests ?</li> </ol>
issue