question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Modify UploadFile

See original GitHub issue

Hello I perfer to using filename_fixed = file.replace(" ", "_") instead of filename_fixed = os.path.basename(file).replace(" ", "_").

In my case, I have many folders in submission folder, but there is file which have same name(MainActivity.java) in different folder. So the result report can not tell me which folder it is in.More importantly, in report, the different link MainActivity.java point to the same MainActivity.java!

Directory Structure Example

                      - No.1 - MainActivity.java
                      |
Submission          - - No.2 - MainActivity.java
                      |
                     -  No.3- MainActivity.java

If you agree, I would create my pull request 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
YsingYangcommented, Oct 18, 2017

@nareddyt Sorry, I’m late. I am not familiar with python and this project(囧). So, if you can handle you can do that, I will try my best to help(some suggestion and test). OK?

2reactions
nareddytcommented, Oct 17, 2017

Yes, having a file_path and a display_name makes a lot more sense! Then you would pass in the full path to the file, but also a friendly display name.

@YsingYang do you want to handle that or should I do that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uploading modified files (Standard UI) - IBM
Go to Administration > Manage System Files. Select the system file type. Navigate to the file that you want to upload the newest...
Read more >
Upload, edit, and manage files - Mindjet Help Server
You can upload, edit, manage, and share your files with other users using commands on the project view or library view ribbon, and...
Read more >
How do I upload and modify files/sub-folders in a read-only ...
To upload read-only files and sub-folders, do one of the following: Ask the owner of the folder to change the permission level to...
Read more >
Upload files and folders to Google Drive - Computer
You can upload, view, share, and edit files with Google Drive. When you upload a file to Google Drive, it will take up...
Read more >
File Uploads - Django documentation
You can only modify upload handlers before accessing request.POST or request.FILES – it doesn't make sense to change upload handlers after upload handling ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found