• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Uploaded files are incomplete

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to upload a pdf to the server's file system. I seem to be able to upload the file, but it is incomplete.

Once it is on the server, I would like to use an action to find the pdf and display it to the browser. This also seems to break the file. If I put a good pdf in place on the server, when I stream it to the browser, I get an error that the file is damaged.

When I look at the file after it is uploaded, I can see that it is not the complete file, so I suspect something is going wrong when I am reading the file in.

Any advice on how to ensure I get the entire (and unbroken) file would be appreciated. Any examples of better or easier ways to do this would be even more appreciated.

Code follows.

File Upload Action:

View File Action
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic