Home
TeamSite
Upload Button on DCT
sunil_j
Hi,
I need to upload some documents / images from my Local file system to TeamSite Server from a DCT and then make use of the newly images/documents as a part of the same DCT.
Has some implemented an upload functionality using CGI/Java callouts on the DCT? Kindly let me have some sample code to acheive the same.
Thanx
Regards
Sunil
Find more posts tagged with
Comments
Gregg Faus
Check this post out:
http://devnet.interwoven.com/forums/cgi-bin/showthreaded.pl?Cat=&Board=PRODUCTS_TEMPLATING&Number=6654
I've implemented this functionality from both callouts and with the VisualFormat editor.
sunil_j
Hi,
Thanx a lot, it really worked. I can't imagine it would have been so simple.
Hats off to you !!
I was trying to implement this for a long time. You have made it possible.
Regards
Sunil
Gregg Faus
Glad to help. Seems like TeamSite always needs customizations. This one was key for me since my users are usually clients that need to upload their own images. And they don't have access to the shared drive.
Let me know if you need help moving them from a temporary file location to a production location (i.e. /templatedata/images/ to /images/). This can be done via workflow with a file moving utility.
- gf
Sekar_S
Hi,
Thanks for that code. I have tried in a windows NT machine & was working fine. When I move the same code to the Solaris Development server it is throwing the following error message. Please throw some light on this ASAP.
Thanks for your time.
THE FOLLOWING ERROR OCCURED:
· com.jspsmart.upload.SmartUploadException: File can't be saved (1120).
- Sekar S
Gregg Faus
Looks like something file permission related. I've never implemented in a UNIX environment. Looking at the website for the component (
http://www.jspsmart.com/
) didn't offer much help either.
I guess what I would do is put some debugging code within the index.jsp file and see where the file is trying to be saved to. Also, would the upload drive still be "Y:"?
sunil_j
No, the Upload Drive as mentioned in the library.jsp should be (I think) modified to /iwmnt.
GF: Even I am also facing the same problem. Can you look into this and find out what could be the problem?
To share what I think, is that the index.jsp we are using doesn't have any user information and the images folder will have permission asigned to it. So only those users can write who have write access. I tried to modify the permission of images as rwxrwxrwx but still I am unable to upload the selected image.
Kindly help us.
Regards
Sunil
Gregg Faus
Unfortunately I don't have a Solaris environment to test on so I can't do any real testing.
My only other thought is that the security context in which the .jsp is running under doesn't have permission to write the file. Is there anything in the your security logs that point to which user is trying to write out the file?
sunil_j
Hey I got that Working !!
Just add the iwui user into the group which has write permissions on the images (target) folder. It works find on Solaris too !!
Thanx
Sunil