File_Uploads in 8.5

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

File_Uploads in 8.5

Justin Purdie
We are having an issue with attaching an uploaded file to an email. The
code we are using to do this is:

Iterate: File_Uploads, (Var: 'upload');
Var: 'origname' = $upload->(Find: 'origname');
 Var: 'size' = $upload->(Find: 'file')->Size;
 #emailText += $origname + ' / ';
 #sumsize = math_add(#sumsize,$size);
$attachments->(Insert: $origname = $upload->(Find: 'file')->(Read: $size));
 /Iterate;

This works fine on the dev machine that it was developed on but when we
move the code to another server, it is giving an error when trying to get
the file contents using $upload->(Find: 'file')->(Read: $size) where it is
saying that $upload->(Find: 'file') is null. Has anyone else run into this
issue or have any idea what may be causing it?

FWIW, we are using 8.5

Thanks

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: File_Uploads in 8.5

Tim Taplin
so, its not failing on the first read of $upload->(find: 'file') where you set the var size, but its failing on the second call where you try to read the file?

That seems odd, as I would normally start the discussion by double, triple and quadruple checking the permissions and lasso config on the system where things don't work. So, If you check the value of $size, is it zero? or null?

Its quite possible that you have some issue with file permissions or lasso's tag permissions.

Tim Taplin

On Dec 11, 2013, at 11:47 AM, Justin Purdie <[hidden email]> wrote:

> We are having an issue with attaching an uploaded file to an email. The
> code we are using to do this is:
>
> Iterate: File_Uploads, (Var: 'upload');
> Var: 'origname' = $upload->(Find: 'origname');
> Var: 'size' = $upload->(Find: 'file')->Size;
> #emailText += $origname + ' / ';
> #sumsize = math_add(#sumsize,$size);
> $attachments->(Insert: $origname = $upload->(Find: 'file')->(Read: $size));
> /Iterate;
>
> This works fine on the dev machine that it was developed on but when we
> move the code to another server, it is giving an error when trying to get
> the file contents using $upload->(Find: 'file')->(Read: $size) where it is
> saying that $upload->(Find: 'file') is null. Has anyone else run into this
> issue or have any idea what may be causing it?
>
> FWIW, we are using 8.5
>
> Thanks
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: File_Uploads in 8.5

stevepiercy
In reply to this post by Justin Purdie
http://www.stevepiercy.com/lasso_stuff/file_perms.lasso
I think there are troubleshooting tips somewhere on that page.

More importantly, copy and paste the exact error.  Retyping the
error is ambiguous.  I cannot tell whether:

     $upload->(Find: 'file') is null

or:

     $upload is null

Big difference.  The latter would indicate that the file did not
upload, and you should follow my guide.

--steve


On 12/11/13 at 11:47 AM, [hidden email] (Justin Purdie) pronounced:

>We are having an issue with attaching an uploaded file to an email. The
>code we are using to do this is:
>
>Iterate: File_Uploads, (Var: 'upload');
>Var: 'origname' = $upload->(Find: 'origname');
>Var: 'size' = $upload->(Find: 'file')->Size;
>#emailText += $origname + ' / ';
>#sumsize = math_add(#sumsize,$size);
>$attachments->(Insert: $origname = $upload->(Find: 'file')->(Read: $size));
>/Iterate;
>
>This works fine on the dev machine that it was developed on but when we
>move the code to another server, it is giving an error when trying to get
>the file contents using $upload->(Find: 'file')->(Read: $size) where it is
>saying that $upload->(Find: 'file') is null. Has anyone else run into this
>issue or have any idea what may be causing it?
>
>FWIW, we are using 8.5
>
>Thanks
>
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list Lasso
>[hidden email]
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: File_Uploads in 8.5

Justin Purdie
Tim & Steve,

Thanks for the input. It appears

$upload->(Find: 'file')

is the part that is null.

It's very strange. One machine that was not working yesterday is working
today... Using the same server. Nothing that we can think of has changed.






Justin Purdie
SkyVantage Development
US Ph. +1-801-649-2925 option 305
US Fax. +1-419-828-6643
Skype (Calls only - no chat): skyvantage
Email: [hidden email]
twitter:  http://twitter.com/skyvantage
facebook: http://www.facebook.com/SkyVantage

---
This message may contain confidential and/or privileged information of
SkyVantage Corporation and  its affiliated companies.  If you are not the
intended recipient, please (i) do not disclose,  copy, distribute, or use
this information, (ii) advise the sender by return e-mail, and (iii)
delete  all copies from your computer.  Your cooperation is greatly
appreciated.


On Wed, Dec 11, 2013 at 3:43 PM, Steve Piercy - Web Site Builder <
[hidden email]> wrote:

> http://www.stevepiercy.com/lasso_stuff/file_perms.lasso
> I think there are troubleshooting tips somewhere on that page.
>
> More importantly, copy and paste the exact error.  Retyping the error is
> ambiguous.  I cannot tell whether:
>
>     $upload->(Find: 'file') is null
>
> or:
>
>     $upload is null
>
> Big difference.  The latter would indicate that the file did not upload,
> and you should follow my guide.
>
> --steve
>
>
> On 12/11/13 at 11:47 AM, [hidden email] (Justin Purdie)
> pronounced:
>
>  We are having an issue with attaching an uploaded file to an email. The
>> code we are using to do this is:
>>
>> Iterate: File_Uploads, (Var: 'upload');
>> Var: 'origname' = $upload->(Find: 'origname');
>> Var: 'size' = $upload->(Find: 'file')->Size;
>> #emailText += $origname + ' / ';
>> #sumsize = math_add(#sumsize,$size);
>> $attachments->(Insert: $origname = $upload->(Find: 'file')->(Read:
>> $size));
>> /Iterate;
>>
>> This works fine on the dev machine that it was developed on but when we
>> move the code to another server, it is giving an error when trying to get
>> the file contents using $upload->(Find: 'file')->(Read: $size) where it is
>> saying that $upload->(Find: 'file') is null. Has anyone else run into this
>> issue or have any idea what may be causing it?
>>
>> FWIW, we are using 8.5
>>
>> Thanks
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy               Web Site Builder               Soquel, CA
> <[hidden email]>                  <http://www.StevePiercy.com/>
>
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: File_Uploads in 8.5

stevepiercy
Sometimes, stuff happens, and a Lasso Site restart "fixes" the
issue.  Has it recently restarted?

--steve


On 12/12/13 at 11:55 AM, [hidden email] (Justin Purdie) pronounced:

>Tim & Steve,
>
>Thanks for the input. It appears
>
>$upload->(Find: 'file')
>
>is the part that is null.
>
>It's very strange. One machine that was not working yesterday is working
>today... Using the same server. Nothing that we can think of has changed.
>
>
>
>
>
>
>Justin Purdie
>SkyVantage Development
>US Ph. +1-801-649-2925 option 305
>US Fax. +1-419-828-6643
>Skype (Calls only - no chat): skyvantage
>Email: [hidden email]
>twitter:  http://twitter.com/skyvantage
>facebook: http://www.facebook.com/SkyVantage
>
>---
>This message may contain confidential and/or privileged information of
>SkyVantage Corporation and  its affiliated companies.  If you are not the
>intended recipient, please (i) do not disclose,  copy, distribute, or use
>this information, (ii) advise the sender by return e-mail, and (iii)
>delete  all copies from your computer.  Your cooperation is greatly
>appreciated.
>
>
>On Wed, Dec 11, 2013 at 3:43 PM, Steve Piercy - Web Site Builder <
>[hidden email]> wrote:
>
>>http://www.stevepiercy.com/lasso_stuff/file_perms.lasso
>>I think there are troubleshooting tips somewhere on that page.
>>
>>More importantly, copy and paste the exact error.  Retyping the error is
>>ambiguous.  I cannot tell whether:
>>
>>$upload->(Find: 'file') is null
>>
>>or:
>>
>>$upload is null
>>
>>Big difference.  The latter would indicate that the file did not upload,
>>and you should follow my guide.
>>
>>--steve
>>
>>
>>On 12/11/13 at 11:47 AM, [hidden email] (Justin Purdie)
>>pronounced:
>>
>>We are having an issue with attaching an uploaded file to an email. The
>>> code we are using to do this is:
>>>
>>> Iterate: File_Uploads, (Var: 'upload');
>>> Var: 'origname' = $upload->(Find: 'origname');
>>> Var: 'size' = $upload->(Find: 'file')->Size;
>>> #emailText += $origname + ' / ';
>>> #sumsize = math_add(#sumsize,$size);
>>> $attachments->(Insert: $origname = $upload->(Find: 'file')->(Read:
>>> $size));
>>> /Iterate;
>>>
>>> This works fine on the dev machine that it was developed on but when we
>>> move the code to another server, it is giving an error when trying to get
>>> the file contents using $upload->(Find: 'file')->(Read: $size) where it is
>>> saying that $upload->(Find: 'file') is null. Has anyone else run into this
>>> issue or have any idea what may be causing it?
>>>
>>> FWIW, we are using 8.5
>>>
>>> Thanks
>>>
>>> #############################################################
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>>
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Steve Piercy               Web Site Builder               Soquel, CA
>><[hidden email]>                  <http://www.StevePiercy.com/>
>>
>>
>>#############################################################
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso
>>[hidden email]
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>>
>
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list Lasso
>[hidden email]
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>