![]() We have a Public Library and when we change something we save it. I have noticed some serious failures in the libraries (old type). We are working here with several developers together. The entire webpage would be behind a login procedure (home grown, not scriptcase) but I don't know how to control someone from browsing the /tmp and other upload directories, even at an apache level. I'm concerned about just dumping files in some /tmp directory. I will likely have 4000 users upload about 10mb of files, so I could have a MySQL DB theoretically grow to 40GB.Īgain, my number one concern is restricting a user (or web robot) from downloading/ browsing other people's uploaded files. However, as I research the web, it seems that storing PDFs/ JPEGs inside MySQL is a bad idea because of performance and other issues. Right now, for security I'm going down the path to store the uploaded files into the actual MySQL DB as "longblob" values, and then calling them up via grids/ forms. Administrators will review the uploaded files and notify users if they are to be accepted or not (granted registration complete status or require more documentation). Only "administrators" can see everyone's uploaded files. Users should not be able to see other user's uploaded files. ![]() However, the contents of the PDFs / JPEGS are to be secured and not world view-able. ![]() The application calls for users to upload files, namely PDFs and JPEGs to the server. I'm making this new registration app with scriptcase 8, and need advice. I need to make sure this is not a bug and if not could someone please give me a direction on what could be the issue :-) Parse error: syntax error, unexpected ' ' in C:\Program Files (x86)\NetMake\v81\wwwroot\scriptcase\app\beta\form _projects\form_projects_apl.php on line 2335 * This macro execute SQL commands passed as parameter or a SQL command in the SQL field action type. Now I have deleted everything and I only have the below in my form under events 'OnScriptInit'. SELECT proj_rev_def_list_proj_rev_def_list_id, 1įROM proj_rev_def_list_has_proj_rev_type WHERE proj_rev_type_proj_rev_type_id = 1 INSERT INTO proj_rev_checklist (proj_rev_def_list_proj_rev_def_list_id, proj_proj_id) The sql (Which works nicely when executed in Mysql) I want to execute is: I thought (I know) that I could use sc_exec_sql macro to do this but I'm getting the following message no matter what! I want to get a default checklist depending on the type of check. For more information, see the sample WiX configuration file included with the Sending toast notifications from desktop apps sample.I'm trying to update one table with data from another. In that case, this code should be included in the MSI rather than in the app's code. Hr = persistFile->Save(shortcutPath, TRUE) Īs an alternative to the approach shown in this topic, you can use a framework such as the Windows Installer XML (WiX) to generate the shortcut and deploy it as part of the Windows Installer. Hr = propertyStore->SetValue(PKEY_AppUserModel_ID, appIdPropVar) Hr = InitPropVariantFromString(AppId, &appIdPropVar) Hr = CoCreateInstance(CLSID_ShellLink, nullptr, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&shellLink)) ![]() Hr = concatError = 0 ? S_OK : E_INVALIDARG ĭWORD attributes = GetFileAttributes(shortcutPath) īool fileExists = attributes 0 ? S_OK : E_FAIL HRESULT hr = charWritten > 0 ? S_OK : E_INVALIDARG Įrrno_t concatError = wcscat_s(shortcutPath, ARRAYSIZE(shortcutPath), L"\\Microsoft\\Windows\\Start Menu\\Programs\\Desktop Toasts App.lnk") ![]() HRESULT DesktopToastsApp::Tr圜reateShortcut()ĭWORD charWritten = GetEnvironmentVariable(L"APPDATA", shortcutPath, MAX_PATH) Note that the shortcut can be deployed per-user or per-app. It then composes the full path to the shortcut, determines that a shortcut of that name does not already exist at that location, and passes that information to another method which creates and installs the shortcut. This example first determines the path of the user's app data folder through the GetEnvironmentVariable function. Instructions Step 1: Prepare the shortcut to be created
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |