fady005
Posts: 115
|
Posted: 05/14/2007, 12:43 AM |
|
Hello,
I'm having some problem...
I actually have an image stored on the server and I get it's adress from an Access Database...
The problem is I want to change the image but if I only change its adress in the database, it'll point on a file on the client's HD...
I know that with Postgres we can use LO_IMPORT to do it but what to use with jdbc.odbc driver ?
Thanks for your help...
_________________
Be inventive ! |
|
|
matheus
Posts: 386
|
Posted: 05/14/2007, 4:33 AM |
|
fady005,
You need change file with a file upload. Will need do the upload of the new file.
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
fady005
Posts: 115
|
Posted: 05/14/2007, 5:03 AM |
|
Yes that what I decided to do finaly but it seems that I don't have all the paramaters for the file upload box...
When I insert a file upload box and then I try to use it to upload a file, I have the following error message :
Translation in english : "Impossible to upload the file specified in FileUpload1 to the server. The upload folder doesn't exist"
Plus I don't know in which folder it does the upload ... and how can I specify the size limit of the upload ?
Can you explain me how to use this fonctionnality ?
_________________
Be inventive ! |
|
|
matheus
Posts: 386
|
Posted: 05/14/2007, 6:34 AM |
|
It's a property for File Upload.
But, your upload folder must be same that first image, if you are editting register.
http://docs.codecharge.com/studio31/html/Components/Obj...Upload.html?toc
More information...
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
fady005
Posts: 115
|
Posted: 05/14/2007, 8:14 AM |
|
I modified the file upload properties but it doesn't change a lot... still gives me the same error...
_________________
Be inventive ! |
|
|
fady005
Posts: 115
|
Posted: 05/15/2007, 1:05 AM |
|
I tried to use default addresses like .\, ..\, C:\
Now it doesn't gives me an error but it doesn't charge the file neither...
_________________
Be inventive ! |
|
|
matheus
Posts: 386
|
Posted: 05/15/2007, 4:10 AM |
|
fady I cannot look your image because my firewall.
But, your upload (and temp) folder exists?
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
fady005
Posts: 115
|
Posted: 05/15/2007, 4:16 AM |
|
For the temp folder, it is the one by default : "%TEMP"
For the upload folder, maybe the first one I have put isn't right but I told that tried C:\, .\, ..\ and should work but now it doesn't give me any error neither upload the file...
_________________
Be inventive ! |
|
|
matheus
Posts: 386
|
Posted: 05/15/2007, 4:40 AM |
|
Take a look if your file was in temp folder?
Your file upload have a control source, it do a register in database?
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
fady005
Posts: 115
|
Posted: 05/15/2007, 5:19 AM |
|
Yes actually, it does copy my file to the temp dir... (it add numbers to the name but the file is the same...)
No it doesn't have a control source is it really needed ? cuz I'd rather modify an entry in the database then controling it...
_________________
Be inventive ! |
|
|
matheus
Posts: 386
|
Posted: 05/15/2007, 5:52 AM |
|
fady, so the upload is doing, it doesn't move file from temp to upload folder.
Can be the upload folder is with a wrong path, it doesn't exists, or don't have write access.
Do you have a field in form with file name? It changes?
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
fady005
Posts: 115
|
Posted: 05/16/2007, 12:56 AM |
|
So the upload aren't done completely...
The upload folder isn't in the wrong place any more (it was at the begining of this topic but not any more). There's always a ".\" or "..\" folder.
What do you mean by field with file name ? There only the file upload component...
It add numbers to the uploaded file in the temp folder but I think it's normal to differenciate files with the same name... for exemple if the file name is "untitled.jpg" the file in temps directory will be "1595443735.untitled.jpg".
For the write rigths, I have an administrator account so I have all the rights to write everywhere...
PS: I tried a file upload application that I downloaded from the internet and it worked so this isn't the problem...
_________________
Be inventive ! |
|
|
matheus
Posts: 386
|
Posted: 05/16/2007, 4:36 AM |
|
fady005, about numbers in name of file, it's okay, it add timestamp before the filename.
Your file upload component had a Control Source? The Control Source was a Database Column?
Put Log in Debug and take a look at him.
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
fady005
Posts: 115
|
Posted: 05/21/2007, 12:58 AM |
|
Sorry for the delay... We had a long week-end here...
As I said before there isn't any control source...
For the log in debug I don't know how to do it...
Thanks
_________________
Be inventive ! |
|
|
matheus
Posts: 386
|
Posted: 05/21/2007, 5:20 AM |
|
fady005, Project Settings, turn log level to Debug.
You need a control source to the file upload, because you need have a relation from file (physical file) to register in database.
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
matheus
Posts: 386
|
Posted: 05/21/2007, 5:20 AM |
|
And please, if you didn't know how log in debug is, read the documentation.
http://docs.codecharge.com
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
fady005
Posts: 115
|
Posted: 05/22/2007, 7:37 AM |
|
Ok, I tried to put a Data Source but it get worse and doesn't do anything at all...
Without a Data Source, the Debug mode give me "File Folder not found"
Anyway don't worry I used a pure Java method to upload my file...
Thanks for all
_________________
Be inventive ! |
|
|