Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

FileUpload_WebFormDesiign

Posted on 2011-02-10
6
Medium Priority
?
181 Views
Last Modified: 2012-05-11
Does anyone know the standard way of doing this.

I have a web for mthat display a stock information. Now i want to add another field to upload a PDF document for that stock item.

I can add this field to let user upload file
Please specify a file,:<br>
<input type="file" name="datafile" size="40">

But my question is related for Updates in case there is a document for that part and user may want to see it or update it.

Would you display a URL to download document and a field so that user can upload a different one.
0
Comment
Question by:sam15
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 40

Accepted Solution

by:
Gurvinder Pal Singh earned 2000 total points
ID: 34868035
you would rather just give a preview of previous document, and give a field to upload a document to replace the existing one.

Let me know if i am missing something
0
 

Author Comment

by:sam15
ID: 34871447
DO you have a webpage or a link that demonstrates that design.

I cant show the existing document since it is a PDF file. I can show a link that downloads it if there is a document. Then i guess i should add another upload field where user can select different file. This field i Beleive usually is empty even if there is a document stored in DB.
0
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 34871476
<<I cant show the existing document since it is a PDF file>>
you can. Just add the following iframe above that upload control

<iframe src="abc.pdf"/>
0
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 

Author Comment

by:sam15
ID: 34872315
Not sure if i want to use frames as they have issues with 508 compliance and screen readers.
Also, the PDF file is stored on the server in a database table (not client machine). I run a download routine for that that opens up the file in the browser or user can save it to his desktop,

The PDF is a stock drawing specs (showing part internals). I do not think I want to show it unless user asks for it. Rememeber this is a screen/webpage that shows you 30 other fields about a stock item (stock number, category, description, issue date, etc.).

I was thinking of showing a URL/Button for the file/drawing. If user wants to see the PDF he clicks it and it opens another window for PDF. If user want to replace/update the PDF file with something else he can click "BROWSE" button and upload another file from his desktop.

Is not this the standard screen design for this kind of thing?
0
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 34876744
<<I was thinking of showing a URL/Button for the file/drawing. If user wants to see the PDF he clicks it and it opens another window for PDF. If user want to replace/update the PDF file with something else he can click "BROWSE" button and upload another file from his desktop.>>

Ok, that would be another option, but that would need the user to make one extra click. But if that is the way you want to go about it, then you can go ahead, since you aren't sure that if iframes has any issues with 508 compliance and screen readers.

0
 

Author Comment

by:sam15
ID: 34890894
Do you have a sample page of a frame showing a PDF document and the HTML form showing other fields? I never saw that before.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question