Jerry
|
| Posted: 01/12/2004, 3:43 PM |
|
I am having trouble with the file upload component.
I keep getting "Warning: copy(temp/200401121333320.jerry.jpg): failed to
open stream: No such file or directory in
D:\HTTP\wwwroot\kgbn-tv\Classes.php on line 1126"
It doesn't look that hard to set up, but I must be missing something. I
made sure the folder is there, and made sure the permissions are correct.
line 1126 in classes.php is:
if( copy($HTTP_POST_FILES[$FileControl]["tmp_name"],
$this->TemporaryFolder . $ActualFileName) ) {
but this is something that codecharge generated, I have not messed with this
at all.
My temp folder is "temp" and my file folder is "images". I have tired to
just put the folder names here, tired putting the full url, even the IP
address of the machine. But no luck. Am I missing something?
Thanks for the help
Jerry
|
|
|
 |
Jerry
|
| Posted: 01/12/2004, 5:37 PM |
|
Nevermind, dumb mistake.. fixed it.
Thanks
Jerry
"Jerry" <jerryb@pccms.com> wrote in message
news:btv4fg$oe3$1@news.codecharge.com...
> I am having trouble with the file upload component.
> I keep getting "Warning: copy(temp/200401121333320.jerry.jpg): failed to
> open stream: No such file or directory in
> D:\HTTP\wwwroot\kgbn-tv\Classes.php on line 1126"
>
> It doesn't look that hard to set up, but I must be missing something. I
> made sure the folder is there, and made sure the permissions are correct.
>
> line 1126 in classes.php is:
> if( copy($HTTP_POST_FILES[$FileControl]["tmp_name"],
> $this->TemporaryFolder . $ActualFileName) ) {
>
> but this is something that codecharge generated, I have not messed with
this
> at all.
>
> My temp folder is "temp" and my file folder is "images". I have tired to
> just put the folder names here, tired putting the full url, even the IP
> address of the machine. But no luck. Am I missing something?
>
> Thanks for the help
> Jerry
>
>
|
|
|
 |
Kevin
|
| Posted: 01/20/2004, 1:36 PM |
|

I am running into that problem with my employee database. I don't know if I should be storing data in my sql database as varchar. I'm confused, what are the steps I need to take to do this correctly.
|
|
|
 |
Jerry
|
| Posted: 01/20/2004, 5:15 PM |
|
I'll try to help a little bit.
I used text rather then varchar, however, this not good for optimization.
Optimization is something that I know very little about, so maybe someone
else could help with this part. But Varchar should work.
This is the problem that I had... maybe we will get lucky and it is the
same you are having.
I am assuming that you have already added the file upload component...
Where my problem was, was with the temporary and image folders. I was
trying to put in the http location for it.. This needs to be the relative
path (I think that's the right word) such as d:\http\wwwroot\temp and
d:\http\wwwroot\images. Also don't forget to set the control source. After
I figured this out, it worked great.
Another thing I ran into was on the pages where the images were supposed to
show up I had to add the folder name before the {image}... click on the
image, then on the format tab you will see src {image} I had to change it
to images/{image}... replace {image} for whatever you have it called.
Hope I was at least some help. Somewhat of a newbie myself.
Take care,
Jerry
"Kevin" <Kevin@forum.codecharge> wrote in message
news:5400d9f4abd349@news.codecharge.com...
> 
>
> I am running into that problem with my employee database. I don't know if
I should be storing data in my sql database as varchar. I'm confused, what
are the steps I need to take to do this correctly.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Kevin
|
| Posted: 01/28/2004, 11:06 AM |
|

I have the uploading of a file okay, I think. However, when I upload the file the filename is shown not the picture. Any clue how to fix this problem.
|
|
|
 |
viking60
|
| Posted: 01/28/2004, 2:31 PM |
|
Quote Kevin:
I have the uploading of a file okay, I think. However, when I upload the file the filename is shown not the picture. Any clue how to fix this problem.
How about rightclicking on it in design mode and change it to picture?
|
|
|
 |
Kevin
|
| Posted: 02/04/2004, 10:40 AM |
|
Did you use the file upload control from the Code Charge Studio toolbox and then selected an image link control or image control?
|
|
|
 |
buzz
Posts: 11
|
| Posted: 02/11/2004, 4:38 AM |
|
>>I have the uploading of a file okay, I think. However, when I upload the >>file the filename is shown not the picture. Any clue how to fix this >>problem.
Change the Content to Html in the properties of the label that you want the picture to be shown in.
I then use a custom before show on the label
//EMPLOYEE_Picture_Image1_BeforeShow @34-F55DED48
function EMPLOYEE_Picture_Image1_BeforeShow()
{
$EMPLOYEE_Picture_Image1_BeforeShow = true;
//End EMPLOYEE_Picture_Image1_BeforeShow
//Custom Code @35-029ABC2F
// -------------------------
global $EMPLOYEE_Picture;
$location = "../Forms/Base/Pict/";
$pfilename = $EMPLOYEE_Picture->PFile->GetValue();
$EMPLOYEE_Picture->Image1->SetValue("<img src='" . $location . $pfilename . "' height=152 width=160 border=\"0\"> " );
// -------------------------
//End Custom Code
//Close EMPLOYEE_Picture_Image1_BeforeShow @34-7556AB8C
return $EMPLOYEE_Picture_Image1_BeforeShow;
}
//End Close EMPLOYEE_Picture_Image1_BeforeShow
this should do the trick
|
 |
 |
Michael Mikkelsen
|
| Posted: 02/27/2004, 3:21 PM |
|
buzz, why would you do all that work when all you need to do it right click on it in design mode and change it to a picture
|
|
|
 |
mulan24
Posts: 6
|
| Posted: 02/28/2005, 2:07 AM |
|
hello jerry
can u tell me the solution of this problem because i also have the same problem. very urgent to solve this problem. please help me very soon.
Quote Jerry:
Nevermind, dumb mistake.. fixed it.
Thanks
Jerry
"Jerry" < jerryb@pccms.com> wrote in message
news:btv4fg$oe3$1@news.codecharge.com...
> I am having trouble with the file upload component.
> I keep getting "Warning: copy(temp/200401121333320.jerry.jpg): failed to
> open stream: No such file or directory in
> D:\HTTP\wwwroot\kgbn-tv\Classes.php on line 1126"
>
> It doesn't look that hard to set up, but I must be missing something. I
> made sure the folder is there, and made sure the permissions are correct.
>
> line 1126 in classes.php is:
> if( copy($HTTP_POST_FILES[$FileControl]["tmp_name"],
> $this->TemporaryFolder . $ActualFileName) ) {
>
> but this is something that codecharge generated, I have not messed with
this
> at all.
>
> My temp folder is "temp" and my file folder is "images". I have tired to
> just put the folder names here, tired putting the full url, even the IP
> address of the machine. But no luck. Am I missing something?
>
> Thanks for the help
> Jerry
>
>
|
 |
 |
mulan24
Posts: 6
|
| Posted: 02/28/2005, 5:44 PM |
|

hi....
i have some problem about upload file. when i use component uload file and set the folderfile with C:\EasyPHP\tst\task. When i upload file it save 200401121333320.test2.doc and fail to open. it supposed to save only test2.doc. What should i do to fix this problem. i didn't touch anything with the generate coding.
Thank you
how to fix the problem
|
 |
 |
peterr
Posts: 5971
|
| Posted: 02/28/2005, 6:32 PM |
|
The filename looks OK.
If you need an example of uploading files take a look at this example: http://examples.codecharge.com/CCSExamplePack2/FileUpload/FileUpload.php
That example is included in CCS Example Pack 2.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Nicole
Posts: 586
|
| Posted: 03/01/2005, 2:46 AM |
|
Hello,
It is normal that timestamp is added to a file name, it is necessary to make it unique. But why you cannot open a file? The file name stored in a field also contains a timestamp unless you modify it. So it shouldn’t be a problem.
_________________
Regards,
Nicole |
 |
 |
Alexey P
|
| Posted: 03/02/2005, 5:52 AM |
|
How i can send many files in one POST click ? ..
I have completed gallery scripts where i send one-one photos. - don't like
it ?
Alexey P.
===========
Afik Pirsum
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 03/02/2005, 8:52 AM |
|
I think that you can create several upload fields on one form. hey are just like textboxes - you can have as many as you like.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
zeuch
Posts: 25
|
| Posted: 03/02/2005, 9:36 AM |
|
You can use an editable grid just for include the photos. Set the Empty Rows in 5 and the Allow Update and Allow Delete to None.
_________________
Matheus Zeuch |
 |
 |
Alexey P
|
| Posted: 03/02/2005, 11:08 AM |
|
Thank You Very Much !!!!!
=======
Alexy P.
"zeuch" <zeuch@forum.codecharge> wrote in message
news:54225f9b48bc3a@news.codecharge.com...
> You can use an editable grid just for include the photos. Set the Empty
> Rows in
> 5 and the Allow Update and Allow Delete to None.
> _________________
> Matheus Zeuch
> http://www.codecharge.com.br
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |