• Post Reply Bookmark Topic Watch Topic
  • New Topic

File Uploading Problem !!  RSS feed

 
sunilkumar ssuparasmul
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,
I wanted to upload a file with a default file name.
Ie i dont want to select a file using "BRowse" button
but instead i wamt to hardcode the name of file.
I tried doing teh same it did not work.
WHen i looked into RFC spec , it is mentioned that
value attribute of file is readonly . SO U cannot expliclity set a value to it ?
Is there anyway to establish the same.
Your help is very much appreciated.
Thnaks in advance,
Sunil.s
 
prabhat kumar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no.
u dunn have any rights on user computer.
on server side u can save the file with the name u want
[ October 16, 2002: Message edited by: prabhat kumar ]
 
sunilkumar ssuparasmul
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But the problem is ,
Let me describe the full scenario ,
A word document is downlaoded in teh browser.
The user does some modification ot it.
I need to save the document on the fly to server.
SInce this is almost not possible( any clue wud be of very very great help to me on this)
WHat i tried saved teh active document in browser
using VBScript ot the clients machine in soem folder say C:\temp. Till this i ave achieved.
Now i wil have to upload teh saved document to server.
so that the user is transparent abt it .SO i will ahve to uplaod teh save document back to server
adn delte the same form users machine.

Any idea how this can be achived.?
I thgt of hardcoding teh filename in "file" elelment of HTML.
but that doesnt work
PLZZZZZZZ help . ia m pretty much struck for almost a month in this.
Thnaks in advance
sunil.s
 
sun moon
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i was not able to understand ur problem.
See what i understood is, There is a document called java.doc and when he clicks onthe java.doc then it is displayed on browser.
now the client modifies and again he uploads to the server. so it overwrites the document in the server.
So is it what u want to say
 
prabhat kumar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what you have to do to achieve this is to create an trusted Activex Control which will do this for you. trusted controls can look into the user computer
 
sunilkumar ssuparasmul
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BUt the point is how wud i run trusted activex control on teh server bcos i am using unix os?
or should i run it on the client?
and moreover can You please eloborate prabhat on what you mentioned?
how to create and run activex controls.
I am basically working on thsi using jsp and servlets
if anything else is required plz mail or buzz me at the following id
you can reach me at yahoo messenager at sunilgct@yahoo.com
Thnaks in advance
sunil.s
 
prabhat kumar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Activex controls can be made in VC++ or VB
they run on client browser(unfortunately only on M$ ie)
what u can code in activeX control that it posts the files to one of ur jsp file using winSock.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!