ab5ni
Posts: 177
|
Posted: 12/04/2012, 12:25 AM |
|
Record Form; added File Upload; set "./tmp" and "./images". No file is ever uploaded or shows up in tmp or images....not ever. What gives?
Regards,
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
|
|
DataDoIT
|
Posted: 12/04/2012, 4:49 AM |
|
1. Turn on error reporting: error_reporting(E_ALL)
2. Look at your logs.
|
|
|
ab5ni
Posts: 177
|
Posted: 12/04/2012, 10:12 AM |
|
[Tue Dec 04 10:34:25 2012] [error] [client <IP Addr Deleted>] PHP Warning
date(): It is not safe to rely on the system's timezone settings. You are
*required* to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely misspelled
the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no
DST' instead in /var/www/html/Common.php on line 669, referer:
http://<deleted>..com/<deleted>.php
K...so PHP doesn't like the date, it seems. Where would be the best place to insert this, I'm wondering?
Regards,
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
|
|
MichaelMcDonald
Posts: 640
|
Posted: 12/04/2012, 2:54 PM |
|
that's a warning, not a critical error so should not impact upload.
What other info can you provide about the upload config?
Is it possible the file size limit is exceeded in php.ini - event though a different upload limit is specified in your component?
Another consideration - the file upload is not in update panel is it?
_________________
Central Coast, NSW, Australia.
|
|
|
ab5ni
Posts: 177
|
Posted: 12/04/2012, 3:21 PM |
|
Hey, Michael, and thanks for the reply.
Checked out the upload limit, and it was set to 2M. Should be more than good for my needs.HTTP upload was turned off, so turned that on and giving it a shot.
Regards,
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
|
|
ab5ni
Posts: 177
|
Posted: 12/04/2012, 4:35 PM |
|
Well, it's still telling me the same thing. Not exactly sure what u mean by an update panel. Basically, I added File Upload to a Record Form. Not sure if this is considered to be an update panel??
Regards,
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
|
|
bannedone
Posts: 273
|
Posted: 12/05/2012, 9:45 AM |
|
Have you tried putting some debugging code in the after process file event for your upload control??
Or some debugging code in any of the other file upload events just to be sure your control is even working??
_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2 |
|
|
MichaelMcDonald
Posts: 640
|
Posted: 12/05/2012, 3:21 PM |
|
Are you permissions OK on those folders and are the folder names adhering to case sensitivity?
_________________
Central Coast, NSW, Australia.
|
|
|
SecureCloud
Posts: 51
|
Posted: 12/06/2012, 9:47 AM |
|
Try
set "/tmp" and "/images"
with no dot
make sure you set permissions of the server folders to chmod 777
_________________
-------------------------------------------------------------------------------------------------
If this helped You, Please Donate to SecureCloud Here, ANY amount Accepted.
http://securecloud.biz/donate/
Thank You, Your help Keeps us Going.
|
|
|
ab5ni
Posts: 177
|
Posted: 12/07/2012, 9:05 PM |
|
k...Thanks for all the great info, guys. I'll give em' all a shot and let u know how things go....
Best Regards,
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
|
|
ab5ni
Posts: 177
|
Posted: 12/09/2012, 10:49 AM |
|
Okay. I got the uploads working, but now I have another small problem. I want to add a link to the picture on a grid. How does one go about doing this?
Best Regards,
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
|
|
bannedone
Posts: 273
|
Posted: 12/10/2012, 6:32 AM |
|
Make it an Image Link and in before show show put the image path and name into the contol
_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2 |
|
|
ab5ni
Posts: 177
|
Posted: 12/10/2012, 11:33 AM |
|
Hey John,
K....will give this a shot...ty!
Best Regards,
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
|
|
ab5ni
|
Posted: 12/11/2012, 11:59 AM |
|
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And
yes, I paid for the meal in cache!
---------------------------------------
Sent from YesSoftware forum http://forums.yessoftware.com/
|
|
|
ab5ni
Posts: 177
|
Posted: 12/11/2012, 11:59 AM |
|
Hey folks,
Well, I tried just about everything to get it to work, but all I get is an error. BTW, John, I'm trying to use a Link and not an Image Link. I have tied the link to a database field named "picture" on the list page and maintenance record, and I've tied the picture field to the FileUpload control. After doing this, I can get the field displayed on the list page, but, unfortunately, the path that's showing up is "/<file name uploaded from FileUpload>.jpg" and not an absolute path, such as "http://www.<whatever>.com/images/<file name uploaded from FileUpload>.jpg". Error says the URL is not valid, so I'm guessing that I need an absolute path here.
I've also tried to use CCS' SetLink() to prepend an absolute path (on the list page) to no avail, and my next step is going to be to try and update the picture field to an absolute path using SQL Update in the After Insert event on the maintenance record form. BTW, the list grid and maintenance form are separate pages.
So this is the overall situation:
* List page with search form and grid form that displays records, with the Link's Control Source Type set to DBColumn, the Control Source set to picture field, the Href Type set to database, and the Href source set to picture.
* Maintenance page (accessed via "Add New" on List page). Maintenance page is a record form, and on this form I've added a FileUpload control. The FileUpload control is tied to a database field called "picture", and the tmp folder is set to "./tmp" and image location is set to "./image".
I've tried to prepend an absolute path in Before Insert and Before Build Insert on the maintenance record, but all I get is an error page.
So, what the hell gives? Pulling hair out over this one!
Best Regards,
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
|
|
SecureCloud
Posts: 51
|
Posted: 12/13/2012, 2:05 PM |
|
to ab5ni...
i'm not sure i understand exactly what u r trying to do...
but i think your trying to upload a picture on maintenance page
then on your list page you want to be able to click on the image link displayed
and open in new window or same window
i dont know if this will help you, but this is what i did..
first i made a mistake in my earlier post, when using file upload, (linux path)
setup like this....
Quote :
TEMPORARY FOLDER: tmp/
FILE FOLDER: images/
with no dot, and slash at the end not beginning.
make sure you set permissions of both the server folders to chmod 777
now thats the upload part, now comes the displaying the image....
change the label to link (or image link) then
Quote :
HREF TYPE: DataSource Parameter
HREF SOURCE: cust_file_upload1 // (whatever your fileUpload Name is)
then view the HTML source, you will see something like this...
<td><a href="{cust_file_upload1_Src}"
and ADD this...
<td><a href="upload/{cust_file_upload1_Src}"
i also added
target="_blank"
to open in NEW window...
Hope this helps you or Someone else.....
_________________
-------------------------------------------------------------------------------------------------
If this helped You, Please Donate to SecureCloud Here, ANY amount Accepted.
http://securecloud.biz/donate/
Thank You, Your help Keeps us Going.
|
|
|
ab5ni
Posts: 177
|
Posted: 12/14/2012, 2:58 PM |
|
Hey SecureCloud, and tyvm for the reply.
Okay, I'll give it a shot and see if I can make it work.
Thanks!
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
|
|
|