Question

Photo of Cody Tindall

0

Unable to upload pdf files of previous background checks

This may be a bug or it may be specific to my setup. Is anyone else having trouble uploading pdf's of previous background checks? To clarify the pdf will actually upload without a problem but it refuses to let me save the block once its finished. It will let me update the information under the background check block and save but never when there's a pdf involved. Is there a size limit that i'm missing?

  • Photo of Scott Conger

    1

    Hi Jon,

    We are having the same issue.  It's a timeout in BinaryFileService.

                    var binaryFileInfo = new BinaryFileService( new RockContext() )
                        .Queryable()
                        .Where( f => f.Guid == guid.Value )
                        .Select( f =>
                            new
                            {
                                f.Id,
                                f.FileName,
                                f.Guid
                            } )
                        .FirstOrDefault();
     
    That statement times out.
  • Photo of Jon Edmiston

    0

    Just curious, how large is the PDF that you are uploading?

  • Photo of Jeremy Turgeon

    0

    Hey Cody,

    Have you tried uploading this specific background file to the Rock demo site?  I haven't been able to replicate this issue on any of our installations of Rock.  Also verified that all major browsers and operating systems seem to function correctly while uploading a test PDF.  Perhaps it's just the file in question?  See if you can take a different PDF and upload it to your installation.

    Hope that helps!

  • Photo of Scott Conger

    0

    Jon, Another small peice of info that may help.  I added a Binary File List block to the screen to see the files.  They only appear if "include temporary" is selected.  So that seems confirms what Coby mentioned, "upload without a problem but it refuses to let me save the block".  The files are there but just not wired up properly because of the timeout.  Our limit is set to 10gb but our test file is 85kb.  It happens to our dev server and a local update to date copy of Rock's dev branch.  I can't say for sure if it's a bug or just IIS/SQL Server blocking or slowing down something.

  • Photo of Jon Edmiston

    0

    I opened an issue for this. https://github.com/SparkDevNetwork/Rock/issues/874