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

Upload Staging: System.IO.DirectoryNotFoundException: Could not find a part of the path. #48

Open
rffrasca opened this issue Dec 28, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@rffrasca
Copy link
Owner

rffrasca commented Dec 28, 2024

Describe the bug
When a PDF is being staged for uploading in the UploadStaging folder, a System.IO.DirectoryNotFoundException is being thrown when the length of the PDF path name is > 259 characters.

To Reproduce
Steps to reproduce the behavior:

  1. Click File menu and then Add
  2. Select PDF
  3. Enter data in Add PDF dialog
  4. Click OK
  5. See error

Expected behavior
PDFKeeper should proceed to upload the PDF to the database.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10 22H2
  • PDFKeeper Version: 11.0.0 and lower

Additional context
System.IO.DirectoryNotFoundException: Could not find a part of the path.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileInfo.MoveTo(String destFileName)
at PDFKeeper.Core.Commands.UploadStagingCommand.Execute()
at PDFKeeper.Core.Presenters.AddPdfPresenter.AddPdf(Boolean deleteSourcePdf)
at PDFKeeper.WinForms.Views.AddPdfForm.OK_Button_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.PerformClick()
at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

@rffrasca rffrasca added the bug label Dec 28, 2024
@rffrasca rffrasca added this to the 11.0.1 milestone Dec 30, 2024
@rffrasca rffrasca moved this to Backlog in PDFKeeper 11.0.1 Dec 30, 2024
@rffrasca rffrasca self-assigned this Dec 30, 2024
@rffrasca rffrasca changed the title System.IO.DirectoryNotFoundException: Could not find a part of the path. Upload Staging: System.IO.DirectoryNotFoundException: Could not find a part of the path. Dec 31, 2024
@rffrasca rffrasca moved this from Backlog to Ready in PDFKeeper 11.0.1 Jan 3, 2025
@rffrasca rffrasca moved this from Ready to In progress in PDFKeeper 11.0.1 Jan 4, 2025
@rffrasca
Copy link
Owner Author

rffrasca commented Jan 5, 2025

See #54 that will address this issue.

@rffrasca rffrasca removed the status in PDFKeeper 11.0.1 Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant